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) mapToList(dfmap, assayCol = "assay")
listmap |
A named |
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 sampMap <- listToMap(maplist) ## The inverse operation is also available maplist <- mapToList(sampMap)