| listToMap {MultiAssayExperiment} | R Documentation |
The mapToList function provides a convenient way of reordering a
data.frame to a list. The listToMap function does the
opposite by taking a list and converting it to DataFrame.
listToMap(listmap, type = "colnames") mapToList(dfmap, assayCol = "assay")
listmap |
A named |
type |
Any of the valid types of maps including colnames, rownames, and assays. |
dfmap |
A |
assayCol |
A character vector of length one indicating the assay names column |
A DataFrame class object of names
A list object of DataFrames for each assay
listToMap: The inverse of the listToMap operation
example("MultiAssayExperiment")
## Create a sampleMap from a list using the listToMap function
mySampleMap <- listToMap(mylist)
## The inverse operation is also available
mylist <- mapToList(mySampleMap)