| dims {FLCore} | R Documentation |
dims return a named list with information on the dimensions and dimension names
of a given object obj. The list returned could be extended in the future and
currently contains, depending on the class of the object, some of the following:
unit) dimensionseason) dimensionarea) dimensioniter) dimensionFLFleet or FLFleets objectFLFleet or FLFleets object
Values in the returned list are of class numeric, unless dimnames are strings with
no numeric translation, in which case the result is NA. In the case of
metiers and spp, the result is of class character.
Please note that the name of the first element in the returned list changes with the
name of the first dimension on the input object. Use quant to obtain the
name and extract the relevant element from the result list.
dims(obj)
The FLR Team
flq <- FLQuant(rnorm(96), dim=c(3,8,1,4), quant='age') dims(flq) # Number of seasons dims(flq)$season # Length of first dimension dims(flq)[[quant(flq)]]