Clip: Clip a vector to lower and higher bound, setting more extreme...

Description Usage Arguments Value Examples

View source: R/clip.r

Description

Takes a numeric vector and limits its range to be within two bounds. values are maintained but set to bound.

Usage

1
Clip(v, lower = -Inf, upper = Inf)

Arguments

v

numeric array

Value

array of same length

Examples

1
Clip(iris$Sepal.Length, 5, 6)

petersmittenaar/peterr documentation built on Feb. 13, 2021, 9:20 p.m.