gug: Group / ungroup rezrDFs.

rez_group_byR Documentation

Group / ungroup rezrDFs.

Description

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

johnwdubois/rezonateR documentation built on Nov. 19, 2024, 11:17 p.m.