quant {FLCore}R Documentation

Common summary operations for FLQuants

Description

Sums and means of FLQuants along any of the five dimensions can be obtained by using these set of functions.

Usage

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)
dimSums(x, na.rm=TRUE)
quantTotals(x)
yearTotals(x)

Arguments

x An FLQuant object.
na.rm Ignores or not NAs.

Details

Value

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.
dimSums operates along the 3rd to 5th dimensions, leaving as output an FLQuant of quant by year only.

Author(s)

FLR Team

See Also

FLQuant-class

Examples






[Package FLCore version 1.4-4 Index]