\HeaderA{init.names}{Set and Read the Names of Experimental Data.}{init.names}
\aliasA{init.name.exp}{init.names}{init.name.exp}
\aliasA{init.show.exp}{init.names}{init.show.exp}
\keyword{attribute}{init.names}
\begin{Description}\relax
`init.name.exp' creates a look-up table which contains the names of the
experimental data files and the corresponding object names in R. \\
`init.show.exp' displays the look-up table created by
\code{init.name.exp}.
\end{Description}
\begin{Usage}
\begin{verbatim}
init.name.exp(Robject=FALSE)
init.show.exp(batch)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{Robject}] if TRUE, the function generates a matrix of characters.
Otherwise, this matrix is written to a file.
\item[\code{batch}] Character string, this refers to the name of a
collection of experiments.
\end{ldescription}
\end{Arguments}
\begin{Value}
\code{init.show.exp} returns a list containing the following components:
\begin{ldescription}
\item[\code{Name in R}] the object names in R;
\item[\code{Filename}] the experimental data filenames, including the full
path name for each file.
\end{ldescription}
\end{Value}
\begin{Author}\relax
Yee Hwa Yang, \email{yeehwa@stat.berkeley.edu}
\end{Author}
\begin{References}\relax
Spot manual
\url{http://www.cmis.csiro.au/iap/Spot/spotmanual.htm}
\end{References}
\begin{Examples}
\begin{ExampleCode}
## init.name.exp() ## To create the look-up table.

## This is what you should see:
## Are you creating a new batch.exp file or adding new data names
## to a prexisting batch.exp file? 
## Enter "n" for creating  and "a" for adding new data names: n
## Enter the batch name for the new .exp file: mouse1
## Enter the number of names of files to be entered: 2
##  Enter the R name of your  1 th dataset: m1
##  Enter the actual file name including the full path name for m1 ?
##  ~/path/image1.data 
##  Enter the R name of your  2 th dataset: m2
##  Enter the actual file name including the full path name for m2 ?
##  ~/path/image2.data 
## Finished adding names to .exp file.
## NULL

## View the look-up table.
## init.show.exp("mouse1") 
## 
##    Name in R           Filename
## 1        m1    ~/path/image1.data
## 2        m2    ~/path/image2.data
\end{ExampleCode}
\end{Examples}

