setPlusGroup             package:FLCore             R Documentation

_M_e_t_h_o_d _s_e_t_P_l_u_s_G_r_o_u_p

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

     Calculates the appropriate values for the plusgroup of an object
     and returns a new object with the plusgroup set to the given age.

     _quant_ of the given object must be 'age', and the selected age
     must not be greater than the oldest age present in the object.

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

     sePlusGroup(x, plusgroup)

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


      _s_i_g_n_a_t_u_r_e(_x=_F_L_Q_u_a_n_t, _p_l_u_s_g_r_o_u_p=_n_u_m_e_r_i_c) : Adds values for the
          indicated age and older.

      _s_i_g_n_a_t_u_r_e(_x=_F_L_S_t_o_c_k, _p_l_u_s_g_r_o_u_p=_n_u_m_e_r_i_c) : The values for the
          plusgroup of the various slots in the 'FLStock' object are
          calculated in different ways.

          For slots catch.n, landings.n, discards.n and stock.n the
          plusgroup is calculated as the sum of values for ages equal
          to the plusgroup and above.

          For slots catch.wt, landings.wt, discards.wt and stock.wt the
          plusgroup value is calculated as the weighted average of the
          values for ages equal to the plusgroup and above, weighted by
          the corresponding numbers at age.

          If stock numbers at age are not available then the revised
          stock weights are calculated as a weighted average using the
          catch numbers at age and the slots for harvest, m, mat,
          harvest.spwn and m.spwn are truncated at the plusgroup age.

          If stock numbers at age are available the plusgroup values
          for harvest, m, mat, harvest.spwn and m.spwn are calculated
          as a weighted average using the stock numbers at age.

      _s_i_g_n_a_t_u_r_e(_x=_F_L_B_i_o_l, _p_l_u_s_g_r_o_u_p=_n_u_m_e_r_i_c) : Calculations are similar
          to FLStock above.

      _s_i_g_n_a_t_u_r_e(_x=_F_L_C_a_t_c_h, _p_l_u_s_g_r_o_u_p=_n_u_m_e_r_i_c) : Abundances (_n_ slot)
          are added, while weights (_wt_), natural mortality (_m_), and
          fecundity (_fec_) are averaged.

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

     The FLR Team

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

     FLStock-class, FLQuant-class, FLBiol-class, FLCatch-class

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

     data(ple4)
     ple4.pg <- setPlusGroup(ple4, 6)

