regroup: Return to grouped data

Description Usage Arguments Value Examples

View source: R/ops.R

Description

After a data frame has been grouped and then ungrouped, this function acts as a shorthand (and faster way) to reinstate grouping.

Usage

1
2
3
regroup(.self, auto_partition = NULL)

groupwise(.self, auto_partition = NULL)

Arguments

.self

Data frame

auto_partition

Re-partition across cluster after operation

Value

Data frame

Examples

1
2
3
4
5
dat <- Multiplyr (x=1:100, G=rep(c("A", "B"), length.out=100))
dat %>% group_by (G)
dat %>% ungroup() %>% regroup()
dat %>% summarise (N=length(x))
dat %>% shutdown()

multiplyr documentation built on May 30, 2017, 12:09 a.m.