R: Melt a list by recursively melting each component.

melt.list {reshape2} | R Documentation

## Melt a list by recursively melting each component.

### Description

Melt a list by recursively melting each component.

### Usage

    ## S3 method for class '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()`

### Examples

    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))))

[Package reshape2 version 1.4.4 Index]