createGroupByAttribute: Split elements into groups based on a given column of a...

Description Usage Arguments Value See Also Examples

View source: R/groups.R

Description

Elements are identified by their respective row name.

Usage

1

Arguments

col

Character: column name

dataset

Matrix or data frame: dataset

Value

Named list with each unique value from a given column and respective elements

See Also

Other functions for data grouping: getGeneList(), getSampleFromSubject(), getSubjectFromSample(), groupPerElem(), plotGroupIndependence(), testGroupIndependence()

Examples

1
2
3
4
df <- data.frame(gender=c("male", "female"),
                 stage=paste("stage", c(1, 3, 1, 4, 2, 3, 2, 2)))
rownames(df) <- paste0("subject-", LETTERS[1:8])
createGroupByAttribute(col="stage", dataset=df)

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