no_extremes {ztils} | R 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)
[Package ztils version 1.0.0 Index]