lapply                package:FLCore                R Documentation

_M_e_t_h_o_d _l_a_p_p_l_y

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

     lapply returns a list of the same length as X, each element of
     which is the result of applying FUN to the corresponding element
     of X.

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

     lapply(X,FUN)

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


      _s_i_g_n_a_t_u_r_e(_X=_F_L_l_s_t,_F_U_N=_m_i_s_s_i_n_g) : lapply returns a list or FLlst
          of the same length as X, each element of which is the result
          of applying FUN to the corresponding element of X of class
          FLlst.

_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:

     # On an FLQuants object
     flqs <- FLQuants(a=FLQuant(1:10), b=FLQuant(1:20))
     # lapply could return another FLQuants object
     lapply(flqs, yearSums)
     # or a simple list, depending on the function  being called
     lapply(flqs, dim)

