num_censor: Censor numeric vector

Description Usage Arguments Examples

View source: R/outlier_treatment.R

Description

Censor top and/or bottom of a numeric vector by replacing with the boundary value(s)

Usage

1
num_censor(x, bounds = c(-Inf, Inf))

Arguments

x

Numeric vector

bounds

Two-element numeric vector defining the lower and upper bounds (in that order)

Examples

1
num_censor(0:10, c(2, 8))

drsimonj/numvert documentation built on May 29, 2019, 2:37 p.m.