find_outliers: Find possible outliers in a dataset

View source: R/find_outliers.R

find_outliersR Documentation

Find possible outliers in a dataset

Description

[Stable]

Find possible outliers in the dataset.

Usage

find_outliers(
  .data = NULL,
  var = NULL,
  by = NULL,
  plots = FALSE,
  coef = 1.5,
  verbose = TRUE,
  plot_theme = theme_metan()
)

Arguments

.data

The data to be analyzed. Must be a dataframe or an object of class split_factors.

var

The variable to be analyzed.

by

One variable (factor) to compute the function by. It is a shortcut to dplyr::group_by(). To compute the statistics by more than one grouping variable use that function.

plots

If TRUE, then histograms and boxplots are shown.

coef

The multiplication coefficient, defaults to 1.5. For more details see ?boxplot.stat.

verbose

If verbose = TRUE then some results are shown in the console.

plot_theme

The graphical theme of the plot. Default is plot_theme = theme_metan(). For more details, see ggplot2::theme().

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples


library(metan)

find_outliers(data_ge2, var = PH, plots = TRUE)

# Find outliers within each environment
find_outliers(data_ge2, var = PH, by = ENV)



metan documentation built on March 7, 2023, 5:34 p.m.