outliers.inc | R Documentation |
Set outliers in a vector to NA
outliers.inc(
x,
inc = rep(T, length(x)),
m = mean(x[inc], na.rm = T),
sdev = sd(x[inc], na.rm = T),
t = 3
)
x |
numeric vector |
inc |
boolean vector with same length as |
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.