Name

log

Examples
setup <- function() {
    i = 12
    print(log(i))
    print(log10(i))
}

# Calculates the base-10 logarithm of a number
log10 <- function(x) {
    return(log(x)/log(10))
}
Description Calculates the natural logarithm (the base-e logarithm) of a number. This function expects the n parameter to be a value greater than 0.0.
Syntax
log(n)
Parameters
nfloat: number greater than 0.0
Creative Commons License