\Header{read.matrix}{Read Matrix with Headers from File}
\keyword{file}{read.matrix}
\begin{Description}\relax
Read a numeric matrix from a file assuming column headings on the first line.
Not normally used directly by users.
\end{Description}
\begin{Usage}
\begin{verbatim}
read.matrix(file,nrows=0,skip=0,...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{file}] character string giving the file name
\item[\code{nrows}] maximum number of rows of data to read, if greater than zero
\item[\code{skip}] number of lines of the data file to skip before reading data
\item[\code{...}] any other arguments to be passed to \code{scan}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function is similar to but faster than \code{read.table(file,header=TRUE)} when all the columns are numeric.
\end{Details}
\begin{Value}
A numeric matrix with column names.\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{read.table}}, \code{\Link{scan}}.

An overview of LIMMA functions for reading data is given in \link{3.ReadingData}.\end{SeeAlso}

