extended plyr by group summary