List with information on object dimensions
dims(obj, ...) # S4 method for FLQuant dims(obj, ...)
Method dims
returns a named list with information on the dimensions
and dimension names of a given object. 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
) dimensionValues in the returned list are of class numeric
, unless dimnames are
strings with no numeric translation, in which case the result is NA
.
Please note that the name of the first element in the returned list changes
with the name of the first dimension in the input object. Use
quant
to obtain the name and extract the relevant element from
the result list.
dims(obj)
#> $age #> [1] 3 #> #> $min #> [1] 1 #> #> $max #> [1] 3 #> #> $year #> [1] 8 #> #> $minyear #> [1] 1 #> #> $maxyear #> [1] 8 #> #> $unit #> [1] 1 #> #> $season #> [1] 4 #> #> $area #> [1] 1 #> #> $iter #> [1] 1 #># Number of seasons dims(flq)$season#> [1] 4#> [1] 3