units {FLCore} | R Documentation |
This is a generic method defined at least for the FLQuant-class
,
but has been extended to other classes (see examples).
An FLQuant object consist of a five-dimensional array plus a character slot
called units
, where the units of measurement of the data can be stored.
Any character string is allowed, and at present methods and functions do not
make use of its content, although this might change in the future. The intention
is to facilitate accurate storage of data and output.
To obtain the present value of the units
slot:
signature("FLQuant")
To set the content of the units
slot:
signature("FLQuant")
FLR Team
flq <- FLQuant() units(flq) units(flq) <- "kg" data(ple4) units(ple4) units(ple4) <- list(harvest="f") my.FLStock <- FLStock() units(my.FLStock) <- units(ple4)