vec.removeOLs | R Documentation |
Remove outlying observations from a vector
vec.removeOLs(x, s = 3, make.na = FALSE)
x |
Vector to remove outliers from |
s |
If a value deviates more SDs from the mean than this value, it is marked as an outlier |
make.na |
If |
A vector with outliers removed or replaced with NA
.
Sercan Kahveci
[removeOLs()]
testvec <- c(1,3,5,7,9,11,13,15,17,19,100000)
vec.removeOLs(testvec)
vec.removeOLs(testvec,make.na=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.