melt | R Documentation |
Unpivot column data from wide format to long format.
melt(object, ...)
## S4 method for signature 'SingleCellExperiment'
melt(
object,
assay = 1L,
min = -Inf,
minMethod = c("absolute", "perRow"),
trans = c("identity", "log2", "log10")
)
object |
Object. |
assay |
|
min |
|
minMethod |
|
trans |
|
... |
Additional arguments. |
DataFrame
.
Updated 2023-10-27.
https://seananderson.ca/2013/10/19/reshape/
reshape2::melt
(deprecated).
tidyr::pivot_longer
.
Python pandas.melt
.
data(SingleCellExperiment_splatter, package = "AcidTest")
## SingleCellExperiment ====
object <- SingleCellExperiment_splatter
dim(object)
df <- melt(object)
nrow(df)
print(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.