groupdata: Set and Get Group Data on a DataFrame

group_dataR Documentation

Set and Get Group Data on a DataFrame

Description

The location of group data is an internal implemnetation detail, so these get and set methods enable interfacing with that data.

Usage

set_group_data(x, g, .drop = group_by_drop_default(x))

get_group_data(x)

Arguments

x

A S4Vectors::DataFrame on which to set group data.

g

Group data (a data.frame).

.drop

Drop groups formed by factor levels that don't appear in the data?

Value

For set_group_data, the input x with group data set as metadata. For get_group_data, the group data that is set on x.


jonocarroll/DFplyr documentation built on Oct. 16, 2024, 4:56 a.m.