trimean | R Documentation |
A robust mean estimator more efficient than the median, first proposed by Tukey.
trimean(x, na.rm = FALSE)
x |
A numeric vector |
na.rm |
Whether to remove missing values.
The function will error if |
The trimean of x
.
a <- rnorm(100)
a[1] <- 1000
trimean(a)
mean(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.