parseCategoricalGroups: Parse categorical columns in a data frame

View source: R/groups.R

parseCategoricalGroupsR Documentation

Parse categorical columns in a data frame

Description

Retrieve elements grouped by their unique group based on each categorical column

Usage

parseCategoricalGroups(df)

Arguments

df

Data frame

Value

List of lists containing values based on rownames of df

See Also

testGroupIndependence() and plotGroupIndependence()

Examples

df <- data.frame("race"=c("caucasian", "caucasian", "asian"),
                 "gender"=c("male", "female", "male"))
rownames(df) <- paste("subject", 1:3)
parseCategoricalGroups(df)

nuno-agostinho/psichomics documentation built on Feb. 11, 2024, 11:16 p.m.