remove_col_outlier: Remove rows of a data frame based on column outliers

Description Usage Arguments Value

View source: R/remove_col_outlier.R

Description

remove_col_outlier removes rows in a data frame based on the outliers in a column. It is a wrapper for [find_col_outlier()].

Usage

1
remove_col_outlier(df, col, threshold = 3, quiet = T)

Arguments

df

The data frame to search through

col

The name or index of the column in the data frame.

threshold

Indices of values that are farther from the mean than the threshold times the deviation are removed. The standard deviation is obtained using [sd()]. The default value is threshold = 3.

quiet

Whether to print a message on the number of outliers removed. The default is quiet = F.

Value

A data frame with rows containing outliers in a specified column removed.


awqx/qsarr documentation built on Oct. 2, 2021, 7:05 a.m.