The R Project SVN R

Rev

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

Rev 27447 Rev 27716
Line 50... Line 50...
50
\author{Douglas Bates}
50
\author{Douglas Bates}
51
\seealso{
51
\seealso{
52
  \code{\link[stats]{lm}}, \code{\link[stats]{reshape}}
52
  \code{\link[stats]{lm}}, \code{\link[stats]{reshape}}
53
}
53
}
54
\examples{
54
\examples{
-
 
55
require(stats)
55
data(PlantGrowth)
56
data(PlantGrowth)
56
formula(PlantGrowth)         # check the default formula
57
formula(PlantGrowth)         # check the default formula
57
pg <- unstack(PlantGrowth)   # unstack according to this formula
58
pg <- unstack(PlantGrowth)   # unstack according to this formula
58
pg
59
pg
59
stack(pg)                    # now put it back together
60
stack(pg)                    # now put it back together