no_extremes: No extremes

View source: R/ztils.R

no_extremesR Documentation

No extremes

Description

This function returns a dataframe subsetted to not include observations that are beyond the extremes of the specified variable. Extremes are defined by the quantiles +- 3 times the interquartile range.

Usage

no_extremes(data, var)

Arguments

data

The data to subset

var

The variable to subset by.

Value

A dataframe without entries containing extremes in the selected variable.

Examples

no_extremes(iris, Sepal.Length)


ztils documentation built on April 11, 2025, 5:52 p.m.