Group / ungroup rezrDFs.
gug.Rd
A replacement for dplyr::group_by()
and dplyr::ungroup()
.
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.
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