groupPerElem: Assign one group to each element

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Assign one group to each element

Usage

1
groupPerElem(groups, elem = NULL, outerGroupName = NA)

Arguments

groups

List of integers: groups of elements

elem

Character: all elements available

outerGroupName

Character: name to give to outer group (if NULL, only show elements matched to their respective groups)

Value

Character vector where each element corresponds to the group of the respective element

See Also

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

Examples

1
2
3
groups <- list(1:3, 4:7, 8:10)
names(groups) <- paste("Stage", 1:3)
groupPerElem(groups)

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