FLQuantTotals             package:FLCore             R Documentation

_M_e_t_h_o_d _q_u_a_n_t_T_o_t_a_l_s

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

     These methods return an object of same dimensions as the input but
     with the sums along the first ('yearTotals') or second dimension
     ('quantTotals'). Although the names might appear contradictory, it
     must be noted that what each method really returns are the totals
     over the selected dimension.

_G_e_n_e_r_i_c _f_u_n_c_t_i_o_n:

     quantTotals(x) 

     yearTotals(x)

_M_e_t_h_o_d_s:


      _s_i_g_n_a_t_u_r_e(_x=_F_L_Q_u_a_n_t) : Compute totals for an FLQuant dimension
          and replicate to the whole object

_A_u_t_h_o_r(_s):

     The FLR Team

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

     FLComp

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

      flq <- FLQuant(rlnorm(100), dim=c(10,10))
      quantTotals(flq)
      # See how the values obtained by yearSums are being replicated
      yearSums(flq)
      # Get the proportions by quant
      flq / quantTotals(flq)
      # or year
      flq / yearTotals(flq)
      

