lwin: Winsorize a vector

View source: R/luna.R

lwinR Documentation

Winsorize a vector

Description

Winsorizes a vector (sets values greater/less than the specified percentile to that value)

Usage

lwin(x, p = 0.05)

Arguments

x

a numeric vector to be winsorized

p

percentile, must be less than 0.5 (defaults to 0.05, implying 5th and 95th percentiles)

Value

winsorized version of x


remnrem/luna documentation built on June 1, 2025, 2:14 p.m.