bound: set outliers to min/max allowable values. It assumes x...

Description Usage Arguments Value Examples

View source: R/bound.R

Description

set outliers to min/max allowable values. It assumes x contains only numerical data

Usage

1
bound(x, bounds)

Arguments

x

input data

bounds

a vector with length 2, contains the min and max of the bound

Value

x truncated input x by min/max in bounds

Examples

1
2
x <- rnorm(1000)
x <- bound(x, c(-1, 1))

ctmle documentation built on Dec. 16, 2019, 1:19 a.m.