Description Generic function Method arguments Methods Author(s) See Also Examples
This set of methods computes three different summaries (sum, mean and variance) of an
FLQuant
object along each of the six dimensions (quant, year, unit, season, area,
or iter). Three methods (dimSums
, dimMeans
and dimVars
) operate
by default over the second to fifth dimensions (unit
, season
and
area
).
These methods simply encapsulate a call to apply
with the
corresponding dimension and function.
Sums are not calculated for the iter
dimension, as it is used to store multiple
replicates of a given array of values.
Methods to operate over the first dimension refer to it as the quant
dimension,
regardless of the actual name used in the object.
The output object will have length=1 on the selected dimension.
quantSums(x), quantMeans(x), quantVars(x)
yearSums(x), yearMeans(x), yearVars(x)
unitSums(x), unitMeans(x), unitVars(x)
seasonSums(x), seasonMeans(x), seasonVars(x)
areaSums(x), areaMeans(x), areaVars(x)
iterMeans(x), iterVars(x)
dimSums(x), dimMeans(x), dimVars(x)
x
:an object of a class for which this method has been defined.
na.rm
:a logical indicating whether NA
s should be deleted from the
calculations. Defaults to TRUE
.
dim
:numeric, the dimensions over which dimSums
, dimMeans
or
dimVars
should operate. Defaults to c(1:2,6)
.
Computes a given summary statistic over a certain dimension of an FLQuant.
The FLR Team
FLQuant, sum, mean, var
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.