Skip to contents

Compute the exponential and logarithmic functions

Usage

# S4 method for FLQuant
exp(x)

# S4 method for FLQuant
log(x, ...)

Details

This method simply calls R's base::exp and base::drop, but take care of returning the right units of measurement, that is "" or character(1).

See also

base::exp base::log

Author

The FLR Team

Examples

x <- FLQuant(c(4,2,7,4,2,9), units="1000")
log(x)
#> An object of class "FLQuant"
#> , , unit = unique, season = all, area = unique
#> 
#>      year
#> quant 1       2       3       4       5       6      
#>   all 1.38629 0.69315 1.94591 1.38629 0.69315 2.19722
#> 
#> units:   
units(log(x))
#> [1] ""