Fetching contributors…
Cannot retrieve contributors at this time
39 lines (34 sloc) 942 Bytes
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{melt.list}
\alias{melt.list}
\title{Melt a list by recursively melting each component.}
\usage{
\method{melt}{list}(data, ..., level = 1)
}
\arguments{
\item{data}{list to recursively melt}
\item{...}{further arguments passed to or from other methods.}
\item{level}{list level - used for creating labels}
}
\description{
Melt a list by recursively melting each component.
}
\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))))
}
\seealso{
\code{\link{cast}}
Other melt.methods: \code{\link{melt.array}},
\code{\link{melt.matrix}}, \code{\link{melt.table}};
\code{\link{melt.data.frame}}; \code{\link{melt.default}}
}
\keyword{manip}