totals             package:compositions             R Documentation

_T_o_t_a_l _s_u_m _o_f _a_m_o_u_n_t_s

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

     Calculates the total amount by summing the individual parts.

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

     totals(x,...)
     ## S3 method for class 'acomp':
     totals(x,...)
     ## S3 method for class 'rcomp':
     totals(x,...)
     ## S3 method for class 'aplus':
     totals(x,...)
     ## S3 method for class 'rplus':
     totals(x,...)
               

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

       x: an amount/amount dataset

     ...: not used, only here for generics

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

     a numeric vector containing the total amounts

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

     'aplus'

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

     data(SimulatedAmounts)
     totals(acomp(sa.lognormals))
     totals(rcomp(sa.lognormals,total=100))
     totals(aplus(sa.lognormals))
     totals(rplus(sa.lognormals))
     aplus(acomp(sa.lognormals),total=totals(aplus(sa.lognormals)))

