\HeaderA{write.madata}{Write Micro Array data to a TAB delimited simple text file}{write.madata}
\keyword{IO}{write.madata}
\begin{Description}\relax
This function is used to write the contents of an object of class
\code{madata} to a TAB delimited simple text file.
\end{Description}
\begin{Usage}
\begin{verbatim}
write.madata(madata, datafile="madata.txt", designfile="design.txt") 
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{madata}] The object to be output. It must be an object of class
\code{madata}.
\item[\code{datafile}] The output file name for the data.
\item[\code{designfile}] The output file name for the design file.
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Hao Wu
\end{Author}
\begin{Examples}
\begin{ExampleCode}
# load abf1 data
data(abf1)
# take out first 6 arrays
## Not run: 
smalldata <- subset(abf1, array=1:6)
# write to file
write.madata(smalldata, datafile="smallabf1.txt",
      designfile="smallabf1design.txt")
## End(Not run)
\end{ExampleCode}
\end{Examples}

