num_truncate: Truncate numeric vector

Description Usage Arguments Examples

View source: R/outlier_treatment.R

Description

Truncate top and/or bottom of a numeric vector by replacing with NA

Usage

1
num_truncate(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_truncate(0:10, c(2, 8))

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