rmOutliers: Remove outliers from numeric variables in data frame

View source: R/all_custom_functions.R

rmOutliersR Documentation

Remove outliers from numeric variables in data frame

Description

The function removes outliers from all numeric variables (also integers) in a data frame while leaving all other variables unchanged. Outliers are (columnwise) defined through the criterion used in the boxplot function.

Usage

rmOutliers(x, chngName = TRUE)

Arguments

x

A data frame.

chngName

A logical value indicating whether a tag should be added to the column names of all numeric variables.

Value

Returns the data frame with no outliers.

Examples

d <- iris[1:10,]
d_no <- rmOutliers(d)
d_no

ryannick28/CustomFunctionsYrotha documentation built on June 1, 2025, 4:02 p.m.