Description Generic function Methods Author(s) See Also Examples
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:
Length of the first dimensions, i.e. number of ages, lengths, etc.
First quant
Last quant
Number of years
First year in series
Last year in series
Number of cohorts
First cohort in series
Last cohort in series
Lengt of the third (unit
) dimension
Lengt of the fourth (season
) dimension
Lengt of the fifth (area
) dimension
Lengt of the sixth (iter
) dimension
Names of the metiers found in an FLFleet
or FLFleets
object
Names of the catches found in an FLFleet
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)
Describe method
Describe method
The FLR Team
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.