The R Project SVN R

Rev

Rev 59039 | Rev 76937 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61150
Line 54... Line 54...
54
  \emph{Data for models.}
54
  \emph{Data for models.}
55
  Chapter 3 of \emph{Statistical Models in S}
55
  Chapter 3 of \emph{Statistical Models in S}
56
  eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.
56
  eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.
57
}
57
}
58
\examples{
58
\examples{
59
DF <- data.frame(a=1:3, b=letters[10:12],
59
DF <- data.frame(a = 1:3, b = letters[10:12],
60
                 c=seq(as.Date("2004-01-01"), by = "week", len = 3),
60
                 c = seq(as.Date("2004-01-01"), by = "week", len = 3),
61
                 stringsAsFactors = TRUE)
61
                 stringsAsFactors = TRUE)
62
data.matrix(DF[1:2])
62
data.matrix(DF[1:2])
63
data.matrix(DF)
63
data.matrix(DF)
64
}
64
}
65
\keyword{array}
65
\keyword{array}