quant {FLCore}R Documentation

Quant, first dimension of FLQuant

Description

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.

Details

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().

Methods

To obtain the present quant:
quant()
Extracts the name of the first dimension of an FLQuant, the quant, as a character string.

To set or modify the quant:

quant<-
Modifies the name of the first dimensions of an FLQuant.

Author(s)

FLR Team

See Also

FLQuant-class

Examples

        flq <- FLQuant(rnorm(20), dim=c(6,10,1,1,1), quant='age')
        quant(flq)
        quant(flq) <- 'length'

[Package FLCore version 1.4-3 Index]