| groupPerElem {psichomics} | R Documentation |
Assign one group to each element
groupPerElem(groups, elem = NULL, outerGroupName = NA)
groups |
List of integers: groups of elements |
elem |
Character: all elements available |
outerGroupName |
Character: name to give to outer group (if |
Character vector where each element corresponds to the group of the respective element
Other functions for data grouping:
createGroupByAttribute(),
getGeneList(),
getSampleFromSubject(),
getSubjectFromSample(),
plotGroupIndependence(),
testGroupIndependence()
groups <- list(1:3, 4:7, 8:10)
names(groups) <- paste("Stage", 1:3)
groupPerElem(groups)