grouped_df: Convert to a data frame

Description Usage Arguments Details See Also

View source: R/grouped-df.r

Description

Functions that convert the input to a data_frame.

The easiest way to create a grouped data frame is to call the group_by method on a data frame or tbl: this will take care of capturing the unevalated expressions for you.

Usage

1
2
3
4
5
6
## S3 method for class 'grouped_df'
as_data_frame(x, ...)

grouped_df(data, vars, drop = TRUE)

is.grouped_df(x)

Arguments

x

A list. Each element of the list must have the same length.

...

Other arguments passed on to individual methods.

data

a tbl or data frame.

vars

a list of quoted variables.

drop

if TRUE preserve all factor levels, even those without data.

Details

For a grouped data frame, the as_data_frame S3 generic simply removes the grouping.

See Also

as_data_frame


sctyner/dplyr050 documentation built on May 17, 2019, 2:22 p.m.