parseCategoricalGroups: Parse categorical columns in a data frame

Description Usage Arguments Value See Also Examples

View source: R/groups.R

Description

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

Usage

1

Arguments

df

Data frame

Value

List of lists containing values based on rownames of df

See Also

testGroupIndependence() and plotGroupIndependence()

Examples

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

psichomics documentation built on Nov. 8, 2020, 5:44 p.m.