The elementwise logarithm. log computes the logarithm, by default the natural logarithm, log10 computes the common (i.e., base 10) logarithm, and log2 computes the binary (i.e., base 2) logarithms. The general form log(x, base) computes logarithms with base base. log1p computes elementwise the function log(1+x).
methods
## S4 method for signature 'Expression'log(x, base = base::exp(1))## S4 method for signature 'Expression'log10(x)## S4 method for signature 'Expression'log2(x)## S4 method for signature 'Expression'log1p(x)
Arguments
x: An Expression .
base: (Optional) A positive number that is the base with respect to which the logarithm is computed. Defaults to e.
Returns
An Expression representing the exponentiated input.