This is an S3 method for dplyr::rowwise that ensures planktonr_dat attributes are preserved and the object correctly becomes a rowwise_df while retaining its planktonr_dat class.

# S3 method for class 'planktonr_dat'
rowwise(data, ..., .rows = NULL)

Arguments

data

A planktonr_dat object.

...

<data-masking> Columns to group by. rowwise() groups by all columns by default.

.rows

Not currently used by dplyr::rowwise(), but included for compatibility with future dplyr updates.

Value

A planktonr_dat object that is also a rowwise_df, preserving original attributes.