View source: R/univariate-trim.R
univariate_trim | R Documentation |
Replaces extreme values with NA
values.
univariate_trim(scores, quantile_lower = 0, quantile_upper = 1)
scores |
A vector of values that |
quantile_lower |
The lower inclusive bound of values to retain. |
quantile_upper |
The upper inclusive bound of values to retain. |
Returns a vector of the same class
as scores
.
#Exclude the largest 5%
TabularManifest::univariate_trim(scores=datasets::beaver1$temp,
quantile_lower=0, quantile_upper=.95)
#Exclude the largest 5% and the smallest 5%
TabularManifest::univariate_trim(scores=datasets::beaver1$temp,
quantile_lower=.05, quantile_upper=.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.