winsorize | R Documentation |
winsorize
sets outliers to low and high border values.
winsorize(
x,
minx = NULL,
maxx = NULL,
probs = c(0.05, 0.95),
na.rm = FALSE,
type = 7
)
x |
A numeric vector to be winsorized. |
minx |
The low border value, all values within |
maxx |
The high border value, all values within |
probs |
A numeric vector of probabilities with values in 0,1 as used in |
na.rm |
A logical value indicating whether missing values should be omitted or not (default) to calculate the quantiles. |
type |
An integer between 1 and 9 selecting one of the nine quantile algorithms detailed in |
A vector of the same length as x
containing the winsorized values.
quantile
, outlier
.
Other Outlier:
outlier()
,
outlier_dataset()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.