FLlst                 package:FLCore                 R Documentation

_C_l_a_s_s _F_L_l_s_t

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

     'FLlst' is a class that extends 'list' but implements a set of
     features that give a little bit more structure to list objects.
     First the elements of 'FLlst' must all be of the same class.
     Second it implements a lock mechanism that, when turned on, does
     not allow the user to increase or decrease the object length. Both
     features are needed to propoerly implement 'FLFleet' class.

_S_l_o_t_s:


     ._D_a_t_a The data. 'list'.

     _n_a_m_e_s Names of the list elements. 'character'.

     _d_e_s_c Description of the object. 'character'.

     _l_o_c_k Lock mechanism, if turned on the length of the list can not
          be modified by adding or removing elements. 'logical'.

_E_x_t_e_n_d_s:


          list

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


     [(_b_a_s_e) : Select method.

      ' signature(x=FLlst,i=ANY,j=missing,drop=missing) '

     [<-(_b_a_s_e) : Replacement method for elements.

      ' signature(x=FLlst,i=ANY,j=missing,value=ANY) '

     [[<-(_b_a_s_e) : Replacement method within elements.

      ' signature(x=FLlst,i=ANY,j=missing,value=missing) '

     $<-(_b_a_s_e) : Replacement method for elements.

      ' signature(x=FLlst,name=character,value=missing) '

     _c_o_e_r_c_e(_m_e_t_h_o_d_s) : Coerce method.

      ' signature(from=FLlst,to=list,strict=missing) '

     _l_a_p_p_l_y(_b_a_s_e) : 'lapply' implemented for 'FLlst' objects.

      ' signature(X=missing,FUN=missing) '

     _w_i_n_d_o_w(_s_t_a_t_s) : Selects a set of years from all elements at once.

      ' signature(x=missing) '

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

     The FLR Team

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

     [, [<-, [[<-, coerce, lapply, window, list

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

     fll01 <- new("FLlst", list(a=1:10, b=10:20))
     fll02 <- new("FLlst", list(1:10, 10:20), names=c("a","b"))
     fll03 <- FLlst(a=1:10, b=10:20)
     fll04 <- FLlst(list(a=1:10, b=10:20))
     fll05 <- FLlst(c(1:10), c(10:20))
     names(fll05) <- names(fll01)
     names(fll01)

