remove_outliers: Remove outliers from vector

Description Usage

View source: R/get_outliers.R

Description

As default, this function replaces the outliers with NA. Setting the replace_with_na setting to FALSE will remove the outliers from a vector, and thus return a shorter vector. Works also within a pipe structure (%>%).

Usage

1
2
data$x <- remove_outliers(data$x)
data <- data %>% mutate(x_no_outliers = remove_outliers(x))

norment/normentR documentation built on Nov. 11, 2020, 2:16 a.m.