parseCategoricalGroups {psichomics} | R 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("patient", 1:3)
    parseCategoricalGroups(df)

[Package psichomics version 1.6.2 Index]