Skip to contents

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

Examples

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