clip: Clip (limit) the values in a vector

Description Usage Arguments Value Note

Description

clip constrains the values in numeric vector x to the range [low,high]

Usage

1
clip(x, low, high)

Arguments

x

A numeric vector

low

The minimum value allowed

high

The maximum value allowed

Value

A numeric vector constrained to the given range.

Note

This function is deprecated.

Code should be updated to use squish from the scales package.


briandconnelly/bdcR documentation built on May 13, 2019, 5:13 a.m.