mix.Read            package:compositions            R Documentation

_R_e_a_d_s _a _d_a_t_a _f_i_l_e _i_n _a _m_i_x_R _f_o_r_m_a_t

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

     Reads a data file, which is formatted in a simple compositional
     file including the first row with title, the second with data
     labels and afterwards the matrix with the data itself. In the
     first column of the matrix are cases labels. This is the format
     used in the mixR package.

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

     mix.Read(file,eps=1e-6)
               

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

    file: a file name

     eps: the epsilon to be used for checking null values.

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

     The data files must have the adequate structure:

     *  the first row with a title of the data set,

     *  the second row with variables names,

     *  the data set in a matrix, rows as cases, variables in columns
        with the firs colum comprising cases labels. A mixture object
        'm' consists of  m$tit  the title, m$mat the matrix with the
        data,  m$sum the value of the rows total, if constant and 
        m$sta the status of the mixture object with values:

         -2  - matrix contains negative elements,
         -1  - zero row sum exists,
         0   - matrix contains zero elements,
         1   - matrix contains positive elements, rows with different row sum(s),
         2   - matrix with constant row sum   and
         3   - closed mixture, the row sums are all equal to 1.

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

     A mixture object as a data frame with a title, row total, if
     constant, status (-2, -1, 0, 1, 2 or 3 - see above) and class
     attributes and the data matrix.

_R_e_f_e_r_e_n_c_e_s:

_S_e_e _A_l_s_o:

     'read.geoeas' 'read.geoEAS' 'read.table'

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

     ## Not run: 
       mix.Read("GLACIAL.DAT")
       mix.Read("ACTIVITY.DAT")
     ## End(Not run)

