delete_outliers: delete_outliers

Description Usage Arguments Details Value Note Author(s)

Description

Delete outliers from numeric or integer variables of a dataset

Usage

1
delete_outliers(df, factor_vars = NULL)

Arguments

df

dataset to clean outliers

factor_vars

factor variables to delete outliers

Details

This function allows you to delete outliers from numeric or integer variables of a dataset based on the z-score in function of the factor variables (or not)

Value

"This function allows us to return original dataset without the outliers based on:"

Note

The z-score indicates that when a observation has a z-score +-3 then is going to be a NA (to not affect the distribution of the variable)

Author(s)

Eduardo Trujillo


1Edtrujillo1/udeploy documentation built on July 13, 2021, 9:12 p.m.