View source: R/e_vec_winsorize.R
e_vec_winsorize | R Documentation |
Winsorize a numeric list or vector by replacing extreme values with the less extreme values
e_vec_winsorize(x, fraction = 0.05, type = 1)
x |
numeric list or vector |
fraction |
fraction between 0 and 0.5 from both sides to Winsorize |
type |
type from |
same numeric vector with extreme values replaced
x <- 1:100
y <- e_vec_winsorize(x, fraction = 0.25)
plot(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.