group_apply function

Apply a function over grouping(s) of data