Split: Create List Column for Analytics.

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

Split creates a list-column dataframe for ease of analytics. The 'Data' column contains the results of split.

Usage

1
Split(data, subset = NULL, vars = NULL, splitVars, drop = FALSE)

Arguments

data

A dataframe to be subsetted (optional) & split accordingly.

subset

A Boolean expression evaluated in 'data'.

vars

Desired field names (not quoted) in 'data'.

splitVars

Field names (or names) in 'data' on which to split.

drop

Logical. Default FALSE (should non-ocurring levels be dropped).

Value

A data.frame with 'Data' as a list column along with fields in 'splitVars'. Row count based on 'splitVars'.

Examples

1
# coming soon

jasondubois/sportfish documentation built on July 3, 2020, 1:01 p.m.