FLQuantTotals: Method quantTotals

Description Generic function Methods Author(s) See Also Examples

Description

These methods return an object of same dimensions as the input but with the sums along the first (yearTotals) or second dimension (quantTotals). Although the names might appear contradictory, it must be noted that what each method really returns are the totals over the selected dimension.

Generic function

quantTotals(x)

yearTotals(x)

Methods

signature(x=FLQuant) :

Compute totals for an FLQuant dimension and replicate to the whole object

Author(s)

The FLR Team

See Also

FLComp

Examples

1
2
3
4
5
6
7
8
9
 flq <- FLQuant(rlnorm(100), dim=c(10,10))
 quantTotals(flq)
 # See how the values obtained by yearSums are being replicated
 yearSums(flq)
 # Get the proportions by quant
 flq / quantTotals(flq)
 # or year
 flq / yearTotals(flq)
 

FLCore documentation built on May 2, 2019, 5:46 p.m.