View source: R/trimmed_quantile.R
| trimmed_quantile | R Documentation | 
For data X = x_1, x_2, \ldots, x_n, with order
statistics x_{(1)}, x_{(2)}, \ldots, x_{(r)}
return the quantiles for a trimmed data set, e.g.,
\boldsymbol{X} \backslash \{x_{(1)}, x_{(r)}\} (trim = 1), or
\boldsymbol{X} \backslash \{x_{(1)}, x_{(2)}, x_{(r-1)}, x_{(r)}\} (trim = 2).
trimmed_quantile(x, trim = 1L, use_unique = TRUE, ...)
| x | a numeric vector | 
| trim | defaults to 1, omitting the min and the max | 
| use_unique | logical, if true (defaults), base the quantiles on unique values, if false, base the quantiles on all data, after trimming. | 
| ... | other arguments to pass to stats::quantile | 
a numeric vector, the return from quantile
quantile
trimmed_quantile(1:100, prob = 1:23 / 24, name = FALSE)
# Warning
# trimmed_quantile(1:100, trim = .3, prob = 1:23 / 24, name = FALSE)
# no warning
trimmed_quantile(1:100, trim = 3, prob = 1:23 / 24, name = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.