\Header{data.matrix}{Data Frame to Numeric Matrix}
\keyword{array}{data.matrix}
\begin{Description}\relax
Return the matrix obtained by converting all the variables in a data
frame to numeric mode and then binding them together as the columns of
a matrix.  Factors and ordered factors are replaced by their codes.\end{Description}
\begin{Usage}
\begin{verbatim}
data.matrix(frame)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{frame}] a data frame whose components are either logical vectors,
factors or numeric vectors.
\end{ldescription}
\end{Arguments}
\begin{SeeAlso}\relax
\code{\Link{as.matrix}},
\code{\Link{codes}},
\code{\Link{data.frame}},
\code{\Link{matrix}}.\end{SeeAlso}

