File: recast.Rd

package info (click to toggle)
r-cran-reshape2 1.4.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 292 kB
  • sloc: cpp: 246; sh: 9; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (2)
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
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/recast.r
\name{recast}
\alias{recast}
\title{Recast: melt and cast in a single step}
\usage{
recast(data, formula, ..., id.var, measure.var)
}
\arguments{
\item{data}{data set to melt}

\item{formula}{casting formula, see \code{\link{dcast}} for specifics}

\item{...}{other arguments passed to \code{\link{dcast}}}

\item{id.var}{identifying variables. If blank, will use all non
measure.var variables}

\item{measure.var}{measured variables. If blank, will use all non
id.var variables}
}
\description{
This conveniently wraps melting and (d)casting a data frame into
a single step.
}
\examples{
recast(french_fries, time ~ variable, id.var = 1:4)
}
\seealso{
\url{http://had.co.nz/reshape/}
}
\keyword{manip}