enve.truncate | R Documentation |
Removes the n
highest and lowest values from a vector, and applies
summary function. The value of n
is determined such that the central
range is used, corresponding to the f
fraction of values.
enve.truncate(x, f = 0.95, FUN = mean)
x |
A vector of numbers. |
f |
The fraction of values to retain. |
FUN |
Summary function to apply to the vectors. To obtain the
truncated vector itself, use |
Returns the summary (FUN)
of the truncated vector.
Luis M. Rodriguez-R [aut, cre]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.