Retrieve elements grouped by their unique group based on each categorical column
Examples
df <- data.frame("race"=c("caucasian", "caucasian", "asian"),
"gender"=c("male", "female", "male"))
rownames(df) <- paste("subject", 1:3)
parseCategoricalGroups(df)
#> named list()