Natural log

ln(x, na.rm = TRUE)

Arguments

x

Input variable

na.rm

Remove missing values (default is TRUE)

Value

Natural log of vector

Examples

ln(runif(10,1,2))
#> [1] 0.3954150 0.3537650 0.5345416 0.2678905 0.6724799 0.2772009 0.3168499 #> [8] 0.6107172 0.2831114 0.6411027