\Header{pamr.to.excel}{A function to write out a data object into a tab-delimited text file}
\begin{Description}\relax
A function to write out a data object into a tab-delimited text file
\end{Description}
\begin{Usage}
\begin{verbatim}
pamr.to.excel(data,file,trace=TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{data}] A data object, of the same form as is read in by pamr.from.excel.
Must have components x (the matrix of expression values), y- a vector of
class labels for each sample, geneid- a vector of gene identifiers and
genenames- a vector of gene names. Optional components: samplelabels and
batchlabels, both character vectors
\item[\code{file}] Character name of a text file. 
\item[\code{trace}] Optional argument. If true, progress in writing out file is reported.

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{pamr.to.excel} 
writes out the data object into a tab-delimited text file, of the same
form as is read in by pamr.from.excel.
Useful for writing out data that has been imputed by pamr.knnimpute or
adjusted by pamr.batchadjust. Note- this function writes the file out
one line at a time, and hence can take a while for big datasets.
\end{Details}
\begin{Author}\relax
Trevor Hastie, Robert Tibshirani, Balasubramanian Narasimhan, and Gilbert Chu
\end{Author}

