Learn R Programming

psycho (version 0.4.91)

remove_outliers: Remove outliers.

Description

Removes outliers (with the z-score method only for now).

Usage

remove_outliers(df, target, threshold = qnorm(0.95),
  direction = "both")

Arguments

df

Dataframe.

target

String or list of strings of variables

threshold

The z-score value (deviation of SD) by which to consider outliers.

direction

Can be "both", "upper" or "lower".