lapply {FLCore} | R Documentation

## Method lapply

### 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

    # 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)

[Package FLCore version 2.2 Index]