names              package:compositions              R Documentation

_T_h_e _n_a_m_e_s _o_f _t_h_e _p_a_r_t_s

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

     The names function provide a transparent way to access the names
     of the parts regardless of the shape of the dataset or data item.

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

     ## S3 method for class 'acomp':
     names(x)
     ## S3 method for class 'rcomp':
     names(x)
     ## S3 method for class 'aplus':
     names(x)
     ## S3 method for class 'rplus':
     names(x)
     ## S3 method for class 'rmult':
     names(x)
     ## S3 method for class 'acomp':
     names(x) <- value
     ## S3 method for class 'rcomp':
     names(x) <- value
     ## S3 method for class 'aplus':
     names(x) <- value
     ## S3 method for class 'rplus':
     names(x) <- value
     ## S3 method for class 'rmult':
     names(x) <- value

               

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

       x: an amount/amount dataset

   value: the new names of the parts

     ...: not used, only here for generics

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

     a character vector giving the names of the parts

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

     'aplus'

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

     data(SimulatedAmounts)
     tmp <- acomp(sa.lognormals)
     names(tmp)
     names(tmp) <- c("x","y","z")
     tmp

