cap_outliers | R Documentation |
Caps the outliers of a numeric vector by percentiles. Also outputs a plot of the capped distribution
cap_outliers(x, q = 0.05, type = c("both", "upper", "lower"))
x |
numeric vector |
q |
decimal input to the quantile function to set cap. default .05 caps at the 95 and 5th percentile |
type |
chr vector. where to cap: both, upper, or lower |
numeric vector
cap_outliers(iris$Petal.Width)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.