ch.subsetDFbyGroups: A function to subset a dataframe by the factorial combination...

ch.subsetDFbyGroupsR Documentation

A function to subset a dataframe by the factorial combination of grouping columns

Description

This function subsets a dataframe by the factorial combination of grouping columns. It outputs a list with each subsetted dataframe

Usage

ch.subsetDFbyGroups(data, grpCols)

Arguments

data

the dataframe to be subsetted.

grpCols

a vector of strings specifying the column names of the grouping variables.

Value

a list with all the subsetted dataframes

Examples

ch.subsetDFbyGroups (myDataframe, c("gender", "condition"))

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.