dimnames<-              package:FLCore              R Documentation

_M_o_d_i_f_y _d_i_m_n_a_m_e_s _o_f _a_n _F_L_Q_u_a_n_t

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

     The 'dimnames<-' method for objects of class 'FLQuant' modifies
     the 'dimnames' attribute. In contrast with the method for class
     'array', an incomplete named list of dimension names can be
     provided. Only the relevant dimensions will be modify.

     It is posible to modify the name of the first dimension (by
     default 'quant') using this method.

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

     dimnames<-(x,value)

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


     _s_i_g_n_a_t_u_r_e(_x=_F_L_Q_u_a_n_t, _v_a_l_u_e=_l_i_s_t) : Modify FLQuant dimnames.

     _s_i_g_n_a_t_u_r_e(_x=_F_L_S_t_o_c_k, _v_a_l_u_e=_l_i_s_t) : Modify dimnames of all FLQuant
          slots inside an FLStock object.

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

     The FLR Team

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

     'dimnames', 'FLQuant', 'array'

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

     flq <- FLQuant(rnorm(80), dim=c(4,10,2))
     dimnames(flq) <- list(unit=c('male', 'female'))
     # This modifies both dimnames and dimnames name
     dimnames(flq) <- list(age=0:3)
     dimnames(flq)

