melt.list

0th

Percentile

Melt a list by recursively melting each component.

Melt a list by recursively melting each component.

Keywords
manip
Usage
# S3 method for list
melt(data, ..., level = 1)
Arguments
data

list to recursively melt

...

further arguments passed to or from other methods.

level

list level - used for creating labels

See Also

cast

Other melt methods: melt.array, melt.data.frame, melt.default

Aliases
  • melt.list
Examples
# NOT RUN {
a <- as.list(c(1:4, NA))
melt(a)
names(a) <- letters[1:4]
melt(a)
a <- list(matrix(1:4, ncol=2), matrix(1:6, ncol=2))
melt(a)
a <- list(matrix(1:4, ncol=2), array(1:27, c(3,3,3)))
melt(a)
melt(list(1:5, matrix(1:4, ncol=2)))
melt(list(list(1:3), 1, list(as.list(3:4), as.list(1:2))))
# }
Documentation reproduced from package reshape2, version 1.4.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.