[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.

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

See also

Examples

# example from palmerpenguins # https://allisonhorst.github.io/palmerpenguins/reference/penguins_raw.html suppressPackageStartupMessages({ library(store) 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")) }