Natural Logarithm each element of a matrix | R Documentation |
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>.
Lbeta, Lchoose, Choose
x <-matrix( runif( 100 * 100), ncol = 100 )
a <- log(x)
b <- Log(x)
all.equal(a, b) # true
x<-a<-b<-NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.