metier                package:FLCore                R Documentation

_M_e_t_h_o_d _m_e_t_i_e_r

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

     'metier' returns a 'link{FLMetier-class}' object from a
     'link{FLFleet-class}'. They can also be accessed directly by using
     the '[' and '[[' methods, see example below.

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

     metier(object,metier)

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


      _s_i_g_n_a_t_u_r_e(_o_b_j_e_c_t=_F_L_F_l_e_e_t, _m_e_t_i_e_r=_c_h_a_r_a_c_t_e_r) : Returns the
          FLMetier with the given name.

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

     The FLR Team

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

     FLMetier, FLFleet, FLCatch, Extract-FLCore

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

     data(bt4)
     names(bt4@metiers)

     # calling the FLMetier with the metier method
     met <- metier(bt4,metier='TBB')
     met <- metier(bt4,'TBB')

     # calling the lower levels with the '[' and the '[[' levels
     fl1  <- bt4['TBB']      # returns a fleet with only the 'TBB' metier
     met1 <- bt4[['TBB']]    # returns the metier

     fl2  <- bt4['TBB','ple'] # returns a fleet with only the 'ple' catch for 'TBB' metier
     fl3  <- bt4[,'ple']      # returns a fleet with only the 'ple' catch

     # possible combinations of the two include:

     ca1 <-  bt4[['TBB']][['ple']] # returns the 'ple' FLCatch from metier 'TBB'
     met2 <- bt4[['TBB']]['ple']   # returns the 'TBB' metier with only the 'ple' catches

