quant {FLCore} | R Documentation |
These two functions extract and modify the name of the first dimension of an FLQuant, the quant. These are generic functions, and can be overloaded for other classes.
An FLQuant is a five dimensional array with fixed names for the last four dimensions (See
FLQuant-class
). The first dimension data is structured along can be different to
accomodate different kinds of data, e.g. catches might be structured by age or length.
The name of the first dimension can be set when a new object is created by using FLQuant
through the quant input argument.
Functions or methods requering data to be structured in a particular way should check for the quant
of an FLQuant by using quant()
.
To set or modify the quant:
FLR Team
flq <- FLQuant(rnorm(20), dim=c(6,10,1,1,1), quant='age') quant(flq) quant(flq) <- 'length'