mapGroups: mapGroups

Description Usage Arguments Details Author(s)

View source: R/dplyrUtil.R

Description

split-map-combine

Usage

1
2
mapGroups(data, ..., drop = TRUE, .isFactorReleveled = FALSE, 
    .omitWarning = FALSE)

Arguments

data

groped data.frame

...

function or formula passed to map that receives a data.frame as first argument

drop

logical indicating if levels that do not occur should be dropped. Set to FALSE if FUN returns a data.frame also for zero-row inputs.

.isFactorReleveled
.omitWarning

Details

https://stackoverflow.com/questions/53855897/accessing-grouping-variables-in-purrrmap-with-nested-dataframes https://coolbutuseless.bitbucket.io/2018/03/03/split-apply-combine-my-search-for-a-replacement-for-group_by—do/ if you create factors inside map_df, one can use map_dfrFactor.

Author(s)

Thomas Wutzler


bgctw/dplyrUtil documentation built on Nov. 11, 2020, 12:25 a.m.