Description Usage Arguments Details Value Note Author(s)
Delete outliers from numeric or integer variables of a dataset
1 | delete_outliers(df, factor_vars = NULL)
|
df |
dataset to clean outliers |
factor_vars |
factor variables to delete outliers |
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)
"This function allows us to return original dataset without the outliers based on:"
if factor_vars = NULL
we delete every outlier of the numeric and/or integer variable without carrying about the factor variables
if factor_vars
is not NULL then the delete of the outliers is by every level of each factor variable selected.
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)
Eduardo Trujillo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.