Learn R Programming

correlation (version 0.6.0)

winsorize: Winsorize data

Description

Winsorization of data.

Usage

winsorize(data, ...)

# S3 method for numeric winsorize(data, threshold = 0.2, verbose = TRUE, ...)

Arguments

data

Dataframe or vector.

...

Currently not used.

threshold

The amount of winsorization.

verbose

Toggle warnings.

Examples

Run this code
# NOT RUN {
library(correlation)

winsorize(iris$Sepal.Length, threshold = 0.2)
winsorize(iris, threshold = 0.2)
# }

Run the code above in your browser using DataLab