gsi.getD            package:compositions            R Documentation

_I_n_t_e_r_a_l _f_u_n_c_t_i_o_n: _G_e_t _n_u_m_b_e_r _o_f _s_a_m_p_l_e_s _a_n_d _n_u_m_b_e_r _o_f _p_a_r_t_s _i_n _a _c_o_m_p_o_s_i_t_i_o_n_a_l _o_b_j_e_c_t

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

     Get the number of samples N and the number of parts D of the
     compositions in an 'acomp', 'rcomp', 'aplus', 'rplus' object.

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

     gsi.getD(x)
     gsi.getN(x)
               

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

       x: an 'acomp', 'rcomp', 'aplus', 'rplus' object or something
          that could be cast to one of them

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

     an integer giving the number of parts D or the number of samples
     N.

_N_o_t_e:

     Do not use gsi.* functions directly since they are internal
     functions of the package

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

     gsi.getD(1:5)
     gsi.getN(1:5)
     NCOL(1:5)
     NROW(1:5)
     data(SimulatedAmounts)
     gsi.getD(sa.lognormals5)
     gsi.getN(sa.lognormals5)

