winsor: Winsor

Description Usage Arguments

View source: R/winsor.R

Description

Winsor

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
winsor(x, method = c("mean", "var", "sd"), trim = 0.2, na.rm = FALSE)

winsorize(x, trim = 0.2, na.rm = FALSE)

winsorise(x, trim = 0.2, na.rm = FALSE)

## Default S3 method:
winsorize(x, trim = 0.2, na.rm = FALSE)

## S3 method for class 'data.frame'
winsorize(x, trim = 0.2, na.rm = FALSE)

Arguments

x

A numeric vector or data.frame.

method

A character value of either "mean", "var", or "sd" to denote the type of analysis.

trim

The proportion of the data by which to trim from the ends

na.rm

Logica. If TRUE, NA values are removed from the data.


jmbarbone/qpm documentation built on July 25, 2020, 10:41 p.m.