The R Project SVN R

Rev

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

Rev 24239 Rev 32212
Line 12... Line 12...
12
}
12
}
13
\arguments{
13
\arguments{
14
  \item{frame}{a data frame whose components are logical vectors,
14
  \item{frame}{a data frame whose components are logical vectors,
15
    factors or numeric vectors.}
15
    factors or numeric vectors.}
16
}
16
}
-
 
17
\details{
-
 
18
  Suppling a data frame with columns which are not numerical or logical
-
 
19
  is an error.  A warning is given if any non-factor column as a class,
-
 
20
  as then information can be lost.
-
 
21
}
17
\seealso{
22
\seealso{
18
  \code{\link{as.matrix}},
23
  \code{\link{as.matrix}},
19
  \code{\link{data.frame}},
24
  \code{\link{data.frame}},
20
  \code{\link{matrix}}.
25
  \code{\link{matrix}}.
21
}
26
}
Line 23... Line 28...
23
  Chambers, J. M. (1992)
28
  Chambers, J. M. (1992)
24
  \emph{Data for models.}
29
  \emph{Data for models.}
25
  Chapter 3 of \emph{Statistical Models in S}
30
  Chapter 3 of \emph{Statistical Models in S}
26
  eds J. M. Chambers and T. J. Hastie, Wadsworth \& Brooks/Cole.
31
  eds J. M. Chambers and T. J. Hastie, Wadsworth \& Brooks/Cole.
27
}
32
}
-
 
33
\examples{
-
 
34
DF <- data.frame(a=1:3, b=letters[10:12],
-
 
35
                 c=seq(as.Date("2004-01-01"), by = "week", len = 3))
-
 
36
data.matrix(DF[1:2])
-
 
37
data.matrix(DF) # gives a warning and quotes dates as #days since 1970.
-
 
38
}
28
\keyword{array}
39
\keyword{array}