wrap.split: Split a data frame

Description Usage Arguments See Also Examples

View source: R/wrap.split.R

Description

Splits a data frame across all combinations of 1-3 independent variables and then assigns the new data frames to the Global Environment. The function delegates the primary computations to split.

Usage

1
wrap.split(df, iv1, iv2 = NULL, iv3 = NULL)

Arguments

df

The data frame that you intend to split

iv1, iv2, iv3

Names of the columns containing the independent variables

See Also

split

Examples

1
2
3
4
5
## Splitting a data frame by 1 independent variable
wrap.split(df = bdata, iv1 = IV1)

## Splitting a data frame by 2 independent variables
wrap.split(df = bdata, iv1 = IV1, iv2 = IV2)

michaelkardas/behavioralwrappers documentation built on Jan. 2, 2020, 7:46 a.m.