lapply: Method lapply

Description Generic function Methods Author(s) See Also Examples

Description

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.

Generic function

lapply(X,FUN)

Methods

signature(X=FLlst,FUN=missing) :

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.

Author(s)

The FLR Team

See Also

FLComp

Examples

1
2
3
4
5
6
# 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)

FLCore documentation built on May 2, 2019, 5:46 p.m.