The R Project SVN R

Rev

Rev 86925 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 86925 Rev 87829
Line 1... Line 1...
1
% File src/library/stats/man/reshape.Rd
1
% File src/library/stats/man/reshape.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2012 R Core Team
3
% Copyright 1995-2021 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{reshape}
6
\name{reshape}
7
\alias{reshape}
7
\alias{reshape}
8
\title{Reshape Grouped Data}
8
\title{Reshape Grouped Data}
Line 200... Line 200...
200
\seealso{\code{\link{stack}}, \code{\link{aperm}};
200
\seealso{\code{\link{stack}}, \code{\link{aperm}};
201
  \code{\link{relist}} for reshaping the result of
201
  \code{\link{relist}} for reshaping the result of
202
  \code{\link{unlist}}. \code{\link{xtabs}} and
202
  \code{\link{unlist}}. \code{\link{xtabs}} and
203
  \code{\link{as.data.frame.table}} for creating contingency tables and
203
  \code{\link{as.data.frame.table}} for creating contingency tables and
204
  converting them back to data frames.
204
  converting them back to data frames.
-
 
205
 
-
 
206
  \code{vignette("reshape")} for detailed examples.
205
}
207
}
206
\examples{
208
\examples{
207
summary(Indometh) # data in long format
209
summary(Indometh) # data in long format
208
 
210
 
209
## long to wide (direction = "wide") requires idvar and timevar at a minimum
211
## long to wide (direction = "wide") requires idvar and timevar at a minimum