| units {FLCore} | R Documentation |
Objects of class FLQuant contain an units attribute of class
character. This should be used to store the corresponding units of measurement.
This attribute can be directly accessed and modified using the units and
units<- methods.
For complex objects, units will return a named list containing the attributes of
all FLQuant slots. units of a complex object can be modified for all slots
or a subset of them, by passing a named list with the new values. See examples below.
units(x)
units<-(x,value)
The FLR Team
FLQuant-class, FLPar-class, FLCohort-class
flq <- FLQuant(rnorm(100), dim=c(5,20), units='kg') units(flq) units(flq) <- 't' summary(flq) # units for a complex object data(ple4) units(ple4) units(ple4) <- list(harvest='hr')