mean_of_log | R Documentation |
Calculates the mean of the log_k of a numeric vector (it excludes NA-s by default).
mean_of_log(x, k = 2, na.rm = TRUE)
x |
A numeric vector. |
k |
The base of the logarithm. Defaults to 2. |
na.rm |
Should NA values be removed before calculation? Defaults to TRUE. |
The mean of the log_k of the input vector.
mean_of_log(1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.