Robust natural log

Ln(x)

Arguments

x

Numeric vector or scalar

Value

natural log transformation of x, Ln(0) ==0

Examples

Ln(5)== log(5)
#> [1] TRUE
Ln(0)
#> [1] 0
# base log(0) returns unhelpful -Inf
log(0)
#> [1] -Inf