fix_outliers: Remove Outliers from a Data Frame

View source: R/fix_outliers.R

fix_outliersR Documentation

Remove Outliers from a Data Frame

Description

This function removes outlier rows from a data frame by identifying rows with values that are more than 2 standard deviations away from the mean in any column.

Usage

fix_outliers(df)

Arguments

df

A data frame to clean

Value

A cleaned data frame with outlier rows removed

Examples

df <- data.frame(x = c(1,2,3,4,5,6,7,8,9,10),
                 y = c(1,1,1,1,1,1,1,100,1,1))
fix_outliers(df)


fixr documentation built on April 4, 2025, 12:30 a.m.

Related to fix_outliers in fixr...