collect.percentiled_df: Force virtual groups to become explicit rows

Description Usage Arguments Examples

View source: R/collect.R

Description

When collect() is used on a percentiled_df, the virtual groups are made explicit.

Usage

1
collect.percentiled_df(x, ..., id = NULL, original_id = NULL)

Arguments

x

A percentiled_df.

...

Not used.

id

Optional. A single character that specifies a name for a column containing a sequence from 1:n for each group.

original_id

Optional. A single character that specifies a name for a column containing the original position of the row.

Examples

1
2
3
4
library(dplyr)

# virtual groups become real rows
collect(percentify_cut(mtcars, mpg, c(0.5)))

EmilHvitfeldt/percentify documentation built on July 9, 2019, 10:54 p.m.