| lapply {FLCore} | R Documentation |
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.
lapply(X,FUN)
The FLR Team
# 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)