group_dt function

Data manipulation within groups