remove.outliers: Remove Outliers from a dataset

Description Usage Arguments Value Examples

Description

This function removes outliers from a dataset credit for this source code goes to aL3xa on StackOverflow

Usage

1
remove.outliers(x, na.rm = TRUE, ...)

Arguments

x

object

na.rm

boolean

Value

object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
set.seed(1)
x <- rnorm(100)
x <- c(-10, x, 10)
y <- remove_outliers(x)
par(mfrow = c(1, 2))
boxplot(x)
boxplot(y)

## End(Not run)

drewgriffith15/griffun documentation built on May 15, 2019, 1:56 p.m.