Function to get or set the name of the first dimension (quant) in an object of any FLArray-based class, like FLQuant or FLCohort.

quant(object, ...)

# S4 method for FLArray
quant(object)

# S4 method for FLArray,character
quant(object) <- value

Generic function

quant(object) quant<-(object,value)

See also

FLQuant, FLCohort

Examples

# quant is 'quant' by default quant(FLQuant())
#> [1] "quant"
flq <- FLQuant(rnorm(80), dim=c(4,20), quant='age') quant(flq)
#> [1] "age"
quant(flq) <- 'length' summary(flq)
#> An object of class "FLQuant" with: #> dim : 4 20 1 1 1 1 #> quant: length #> units: NA #> #> Min : -3.674144 #> 1st Qu.: -0.7556939 #> Mean : -0.1150752 #> Median : -0.130785 #> 3rd Qu.: 0.5457576 #> Max : 2.669928 #> NAs : 0 %
# quant is 'quant' by default quant(FLQuant())
#> [1] "quant"
flq <- FLQuant(rnorm(80), dim=c(4,20), quant='age') quant(flq)
#> [1] "age"
quant(flq) <- 'length' summary(flq)
#> An object of class "FLQuant" with: #> dim : 4 20 1 1 1 1 #> quant: length #> units: NA #> #> Min : -2.331034 #> 1st Qu.: -0.8402219 #> Mean : -0.18424 #> Median : -0.2110236 #> 3rd Qu.: 0.3680914 #> Max : 2.067257 #> NAs : 0 %