Rev 24239 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{data.matrix}\alias{data.matrix}\title{Data Frame to Numeric Matrix}\description{Return the matrix obtained by converting all the variables in a dataframe to numeric mode and then binding them together as the columns ofa matrix. Factors and ordered factors are replaced by their internalcodes.}\usage{data.matrix(frame)}\arguments{\item{frame}{a data frame whose components are logical vectors,factors or numeric vectors.}}\seealso{\code{\link{as.matrix}},\code{\link{data.frame}},\code{\link{matrix}}.}\references{Chambers, J. M. (1992)\emph{Data for models.}Chapter 3 of \emph{Statistical Models in S}eds J. M. Chambers and T. J. Hastie, Wadsworth \& Brooks/Cole.}\keyword{array}