n: Number of items in current group

Description Usage Value See Also Examples

View source: R/util.R

Description

Number of items in current group

Usage

1
n()

Value

Number of items in current group (or node if ungrouped)

See Also

Other utility functions: between, cumall, cumany, cummean, distribute, first, lag, last, lead, n_distinct, n_groups, nth

Examples

1
2
3
4
dat <- Multiplyr (x=1:100, G=rep(1:4, each=25), cl=2)
dat %>% group_by (G)
dat %>% summarise (G.size = n())
dat %>% shutdown()

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