Description Usage Arguments Value Examples
rmOutliers converts outleirs (as defined as being some x number of standard deviations from the mean) to either NA, mean +/- x standard deviations, or the mean
1 | rmOutliers(x, sdCut = 3, method = "remove")
|
x |
Vector of continuous values |
sdCut |
Number of standard deviations to use as a cut-point for finding outliers |
method |
Method for outlier handling. 'remove' sets outliers to NA. 'limits' will set outliers to be equal to the mean +/- the standard deviation set. 'average' sets outliers to be equal to the average. |
A numeric vector with no outliers
1 2 3 4 | #example_vector <- c(100, rnorm(19, 5, 2))
#rmOutliers(example_vector, 3, method = "remove")
#rmOutliers(example_vector, 3, method = "limits")
#rmOutliers(example_vector, 3, method = "average")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.