This is an S3 method for dplyr::group_by
that ensures
planktonr_dat
attributes are preserved and the object correctly
becomes a grouped_df
while retaining its planktonr_dat
class.
# S3 method for class 'planktonr_dat'
group_by(.data, ..., .add = FALSE, .drop = dplyr::group_by_drop_default(.data))
A planktonr_dat
object.
<data-masking
> Variables to group by.
When TRUE
, add to the existing groups, otherwise start with new groups.
When TRUE
, empty groups are dropped.
A planktonr_dat
object that is also a grouped_df
,
preserving original attributes.