multiSelectionToFactor {iSEE} | R Documentation |
Convert multiple selection information into a factor, typically for use as a covariate or for coloring.
multiSelectionToFactor(selected, all.names)
selected |
A named list of character vectors, containing the names of selected observations for different selections. Vectors for different selections may overlap. |
all.names |
Character vector of all observations. |
A factor containing the set(s) to which each observation is assigned.
Multiple sets are encoded as comma-separated strings.
Unselected observations are listed as "unselected"
.
Aaron Lun
multiSelectionToFactor(list(active=c("A", "B"), saved1=c("B", "C"), saved2=c("D", "E", "F")), all.names=LETTERS[1:10])