group_by function

Group rows in ir objects by one or more variables