quant {FLCore} | R Documentation |
Sums and means of FLQuants along any of the five dimensions can be obtained by using these set of functions.
quantSums(x, na.rm=TRUE) quantMeans(x, na.rm=TRUE) yearSums(x, na.rm=TRUE) yearMeans(x, na.rm=TRUE) unitSums(x, na.rm=TRUE) unitMeans(x, na.rm=TRUE) seasonSums(x, na.rm=TRUE) seasonMeans(x, na.rm=TRUE) areaSums(x, na.rm=TRUE) areaMeans(x, na.rm=TRUE) quantTotals(x) yearTotals(x)
x |
An FLQuant object. |
na.rm |
Ignores or not NAs. |
All these functions return an FLQuant with the relevant dimension reduced to length 1, containing
the means or sums along the selected dimension. names on the chosen dimension are also modified.
The exceptions are quantTotals
and yearTotals
, which return an object of the same
dimensions as the original containing the sums along the quant or year dimensions respectively. This
is useful for calculating proportions, for example.
FLR Team