ch.extractDFbyGroups: A function to extract a subsetted dataframe returned the...

ch.extractDFbyGroupsR Documentation

A function to extract a subsetted dataframe returned the function ch.subsetDFbyGroups()

Description

This function extracts a specific dataframe the list of dataframes that is returned from the function ch.subsetDFbyGroups(). To identify the dataframe to be extracted, you create a one line dataframe that contains only the grouping variables used as an argument in ch.subsetDFbyGroups(). However, the first (and only) row should contain the value of each grouping variable that you want the dataframe to contain. For example, grpSubsetCond <- data.frame(gender = "Female", condition = "math").

Usage

ch.extractDFbyGroups(subsettedDFlist, grpSubsetCond)

Arguments

subsettedDFlist

the list of subsetted dataframes returned by ch.subsetDFbyGroups().

grpCols

a single rowed dataframe that contains only the grouping variables used as an argument in ch.subsetDFbyGroups(). The first (and only) row should contain the value of each grouping variable that you want the dataframe to contain. For example, grpSubsetCond <- data.frame(gender = "Female", condition = "math").

Value

a dataframe that is identified by grpSubsetCond

Examples

ch.subsetDFbyGroups (outList, data.frame(gender = "Female", condition = "math"))

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