log {math} R Documentation

computes logarithms, by default natural logarithms, log10 computes common (i.e., base 10) logarithms,

Description

and log2 computes binary (i.e., base 2) logarithms.
The general form log(x, base) computes logarithms with base base.

Usage

log(x,
    newBase = 2.718281828459045);

Arguments

x

a numeric or complex vector.

newBase

a positive or complex number: the base with respect to which logarithms are computed. Defaults to e=exp(1). [as double]

Details

Authors

SMRUCC genomics Institute

Value

this function returns data object of type double.

clr value class

Examples


[Package math version 2.33.856.6961 Index]