clamp: Clamp numbers within a range.

Description Usage Arguments Value

View source: R/util.R

Description

Clamp numbers within a range.

Usage

1
clamp(n, interval)

Arguments

n

Numeric vector.

interval

Numeric vector containing the minimum and maximum values of the range, respectively.

Value

Input vector with values clamped within the specified range.


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.