winsorise | R Documentation |
Winsorizes the numbers, that is, reduces any number above a given limit to that number and likewise for a lower limit.
winsorise(x, upper = Inf, lower = -Inf)
x |
(numeric vector) A vector of values. |
upper |
(numeric scalar) The upper limit. |
lower |
(numeric scalar) The lower limit. |
winsorise(seq(-3, 13), 10, 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.