eda_variable_outliers: Display the variable outliers

eda_variable_outliersR Documentation

Display the variable outliers

Description

[Experimental]

Exports the variable outliers within a data frame into a temporary directory. This includes displaying outliers in a box plot and summary statistics including count outliers and mean of each variable with outliers included and excluded.

Usage

eda_variable_outliers(.dataset)

Arguments

.dataset

A data frame requiring exploratory data analysis.

Value

The data frame is returned invisibly so that the function can be used in a piped workflow.

Figures

04-outliers_table.png 05-variable_outliers.png

See Also

Other exploratory data analysis: eda_variable_collection(), eda_variable_correlation(), eda_variable_distribution(), eda_variable_summary()

Examples

# example from palmerpenguins
# https://allisonhorst.github.io/palmerpenguins/reference/penguins_raw.html
suppressPackageStartupMessages({
  suppressWarnings({
    library(palmerpenguins)
  })
})

suppressWarnings({
  suppressMessages({
    eda_variable_outliers(penguins_raw)
  })
})

# move figures from temporary directory
suppressPackageStartupMessages({
  suppressWarnings({
    library(fs)
    library(here)
  })
})

if(dir_exists(here("man", "figures"))) {
 file_move(path(tempdir(), "figures", "04-outliers_table.png"),
           here("man", "figures", "04-outliers_table.png"))

 file_move(path(tempdir(), "figures", "05-variable_outliers.png"),
           here("man", "figures", "05-variable_outliers.png"))
}

gcfrench/store documentation built on May 17, 2024, 5:52 p.m.