Skip to contents

A replacement for dplyr::group_by() and dplyr::ungroup().

Usage

rez_group_by(df, ...)

rez_ungroup(df, ...)

Arguments

df

The data frame to be modified.

...

Arguments to be passed to group_by / ungroup, including the field(s) on which you're grouping.

Value

The grouped / ungrouped rezrDF.

Note

There is no replacement for dplyr::summarise(). Currently there are no plans for a rezonateR equivalent of dplyr::summarise(), but please feel free to describe a use case in a GitHub issue if you would like.

Examples

sbc007$tokenDF = sbc007$tokenDF %>%
rez_group_by(unit) %>% rez_mutate(unitLength = inLength(text, isWord = (kind == "Word"))) %>% rez_ungroup