outliers | R Documentation |
Set outliers in a vector to NA
outliers(x, m = mean(x, na.rm = T), sdev = sd(x, na.rm = T), t = 3)
x |
numeric vector |
m |
target center of acceptable interval after outlier removal,
default to |
sdev |
target variation of acceptable interval, default to |
t |
scale of deviation, default to 3 |
x
after setting outliers to NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.