init.names                package:sma                R Documentation

_S_e_t _a_n_d _R_e_a_d _t_h_e _N_a_m_e_s _o_f _E_x_p_e_r_i_m_e_n_t_a_l _D_a_t_a.

_D_e_s_c_r_i_p_t_i_o_n:

     `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
     'init.name.exp'.

_U_s_a_g_e:

     init.name.exp(Robject=FALSE)
     init.show.exp(batch)

_A_r_g_u_m_e_n_t_s:

 Robject: if TRUE, the function generates a matrix of characters.
          Otherwise, this matrix is written to a file.

   batch: Character string, this refers to the name of a collection of
          experiments.

_V_a_l_u_e:

     'init.show.exp' returns a list containing the following
     components: 

Name in R: the object names in R;

Filename: the experimental data filenames, including the full path name
          for each file.

_A_u_t_h_o_r(_s):

     Yee Hwa Yang, yeehwa@stat.berkeley.edu

_R_e_f_e_r_e_n_c_e_s:

     Spot manual <URL:
     http://www.cmis.csiro.au/iap/Spot/spotmanual.htm>

_E_x_a_m_p_l_e_s:

     ## 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

