dplyr (version 0.5.0)

grouped_df: Convert to a data frame

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

# S3 method for 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