Rev 286 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{data.matrix}\title{Data Frame to Numeric Matrix}\usage{data.matrix(frame)}\alias{data.matrix}\arguments{\item{frame}{a data frame whose components are eitherlogical vectors, factors or numeric vectors.}}\value{The matrix obtained by converting all the variables in adata frame to numeric mode and then binding them togetheras the columns of a matrix.Factors and ordered factors are replaced by their codes.}\seealso{\code{\link{as.matrix}},\code{\link{codes}},\code{\link{data.frame}},\code{\link{matrix}}.}\keyword{array}