Description Usage Arguments See Also Examples
This code is conceptually similar to as.data.frame.table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ## S3 method for class 'array'
melt(
data,
varnames = names(dimnames(data)),
...,
na.rm = FALSE,
as.is = FALSE,
value.name = "value"
)
## S3 method for class 'table'
melt(
data,
varnames = names(dimnames(data)),
...,
na.rm = FALSE,
as.is = FALSE,
value.name = "value"
)
## S3 method for class 'matrix'
melt(
data,
varnames = names(dimnames(data)),
...,
na.rm = FALSE,
as.is = FALSE,
value.name = "value"
)
|
data |
array to melt |
varnames |
variable names to use in molten data.frame |
... |
further arguments passed to or from other methods. |
na.rm |
Should NA values be removed from the data set? This will convert explicit missings to implicit missings. |
as.is |
if |
value.name |
name of variable used to store values |
Other melt methods:
melt.data.frame()
,
melt.default()
,
melt.list()
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.