exp-methods: exp and log methods FLCore array-based classes

exp,FLQuant-methodR Documentation

exp and log methods FLCore array-based classes

Description

Compute the exponential and logarithmic functions

Usage

## S4 method for signature 'FLQuant'
exp(x)

## S4 method for signature '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).

Author(s)

The FLR Team

See Also

base::exp base::log

Examples

x <- FLQuant(c(4,2,7,4,2,9), units="1000")
log(x)
units(log(x))

flr/FLCore documentation built on May 4, 2024, midnight