Description Usage Arguments Details Value Examples
Remove outliers from a vector.
1 2 |
x |
A vector |
tail |
One of |
meth |
One of |
probs |
A 1 or 2 element numeric vector of probabilities |
na.rm |
A boolean whether to remove NA |
sdn |
when meth = 'sd', number of standard deviations away from the mean to detect outlier |
Each method will be described here in the future.
A cleaned vector where all outliers outside of quantile(x,probs)
(see details for individual methods) are changed to NA.
1 2 | x <- rnorm(1000)
y <- rm.outliers(x,probs=c(.01,.99))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.