Learn R Programming

metan (version 1.7.0)

find_outliers: Find possible outliers in a dataset

Description

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

Examples

Run this code
# NOT RUN {
library(metan)

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

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

Run the code above in your browser using DataLab