Natural Logarithm each element of a matrix
Natural Logarithm each element of a matrix.
Log(x, na.rm = FALSE)
x |
A matrix with data. |
na.rm |
A boolean value (TRUE/FALSE) for removing NA. |
The argument must be a matrix. For vector the time was the same as R's "log" function so we did not add it.
A matrix where each element is the natural logarithm of the given argument.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
x <-matrix( runif( 100 * 100), ncol = 100 ) a <- log(x) b <- Log(x) all.equal(a, b) # true x<-a<-b<-NULL
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.