group_by_data: Group data

Description Usage Arguments Value Examples

View source: R/group.R

Description

Indicate grouping variables in data frame

Usage

1

Arguments

.data

Data frame

...

Unquoted (non-standard evaluation) name(s) of group variable(s).

Value

A data frame with groups attribute

Examples

1
2
d <- data.frame(a = c("a", "b", "c"), b = 1:3, stringsAsFactors = FALSE)
group_by_data(d, a)

tbltools documentation built on Feb. 9, 2019, 1:04 a.m.