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