listToMap | 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, fill = TRUE)
mapToList(dfmap, assayCol = "assay")
listmap |
A named |
fill |
|
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.