ade4toR                 package:ade4                 R Documentation

_F_o_r_m_a_t _C_h_a_n_g_e _U_t_i_l_i_t_y

_D_e_s_c_r_i_p_t_i_o_n:

     Exchange objects between R and ADE4 (classic version) 
      <URL: http://pbil.univ-lyon1.fr/ADE-4>

_U_s_a_g_e:

     ade4toR (fictab, ficcolnames = NULL, ficrownames = NULL)
     Rtoade4 (x)

_A_r_g_u_m_e_n_t_s:

  fictab: a name of ADE4 text file.  A data frame with the same name is
          created in the R environment.

ficcolnames: the column names label file

ficrownames: the row names label file

       x: a data frame

_D_e_t_a_i_l_s:

     "xxx" is the name of object x ('(deparse(substitute(x)))')
      For any table :
      creates a file "xxx.txt"
      creates a file "xxx_row_lab.txt" with row names
      creates a file "xxx_col_lab.txt" with column names

     if x has the 'col.blocks' attribute
      creates a file "xxx_col_bloc_lab.txt" with blocks names
      creates a file "xxx_col_bloc.txt" with blocks sizes

     For a table which all columns are factors : 
      creates a file "xxx.txt"
      creates a file "xxx_var_lab.txt" with row names
      creates a file "xxx_moda_lab.txt" with categories names

     Files are created in the current working directory.

_V_a_l_u_e:

     'ade4toR' gives data frames.
      'Rtoade4' gives text files.

_E_x_a_m_p_l_e_s:

     data(tarentaise)
     traits <- tarentaise$traits
     Rtoade4(traits)
     # File creation traits.txt 
     # File creation traits_col_lab.txt 
     # File creation traits_row_lab.txt 
     # File creation traits_col_bloc.txt 
     # File creation traits_col_bloc_lab.txt  

     mil <- tarentaise$envir
     Rtoade4(mil)
     #File creation mil.txt 
     #File creation mil_var_lab.txt 
     #File creation mil_moda_lab.txt 

