h_split_by_subgroups function

Split data frame by subgroups