transformations from 'mixtures' to  'compositions' classespackage:compositionsR Documentation

_T_r_a_n_s_f_o_r_m_a_t_i_o_n_s _f_r_o_m '_m_i_x_t_u_r_e_s' _t_o  '_c_o_m_p_o_s_i_t_i_o_n_s' _c_l_a_s_s_e_s

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

     Transformations from 'mixtures' of the "mixR" library to
     'compositions' classes 'aplus', 'acomp', 'rcomp', 'rplus' and
     'rmult'.

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

        mix.2aplus(X)
        mix.2acomp(X)
        mix.2rcomp(X)
        mix.2rplus(X)
        mix.2rmult(X)
        

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

       X: mixture object to be converted

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

     A 'compositions' object is obtained from the mixtute object m,
     having the same data matrix as mixture object m i.e. m$mat.

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

     A 'compositions' object of the class 'aplus', 'acomp', 'rcomp',
     'rplus' or 'rmult'.

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

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

     'aplus' 'acomp' 'rcomp' 'rplus' 'rmult'

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

     ## Not run: 
     m <- mix.Read("Glac.dat")      # reads the Glacial data set from Aitchison (1986)
     m <- mix.Extract(m,c(1,2,3,4))   # mix object with closed four parts subcomposition
     ap <- mix.2aplus(m)   # ap is a 'compositions' object of the aplus class
     ac <- mix.2acomp(m)   # ac is a 'compositions' object of the acomp class
     ## End(Not run)

