trim.sample | R Documentation |
Symmetrically trim a vector of numbers after sorting it.
trim.sample(x, trim = 0.05)
x |
A numeric vector. |
trim |
A number, the fraction of observations to be trimmed from each end of |
If length(x) <= 10
, the function returns x[2:(length(x) - 1)]
.
A sorted, trimmed copy of x
.
trim.sample(
x = 1:20,
trim = 0.05
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.