The FLQuant object - PacificCommunity/ofp-sam-flr4mfcl GitHub Wiki
A quick introduction to the FLQuant class is provided here. For a more detailed overview we recommend that you check out the FLCore classes tutorial on the FLR website.
The FLQuant object is a six-dimensional array, in which the first dimension is free to have any name, 'quant' by default, but commonly age, while the other five have set names:
- year: year of the data point.
- unit: any subdivision of the data not based on space or time, for example gender (male and female).
- season: any time step shorter than year (e.g. month, quarter, week).
- area: spatial subdivision of data
- iter: multiple iterations of the same process (e.g. bootstrap, Bayesian, Monte Carlo, …)
We can now call the FLQuant() constructor method to see an example with some random numbers
> FLQuant(rlnorm(20), dim=c(4,5), quant="age", units="kg")
An object of class "FLQuant"
, , unit = unique, season = all, area = unique
year
age 1 2 3 4 5
1 2.13460 2.65610 1.68060 0.37771 0.42851
2 0.47083 1.00165 1.16354 0.27293 0.12379
3 0.68952 0.63227 2.90900 1.43569 0.65481
4 2.27190 3.59852 0.17752 0.48244 0.63503
units: kg