clamp: Clamp a vector of values to a specified range.

Description Usage Arguments

Description

How is this not a built-in function already?

Usage

1
clamp(x, xlo, xhi)

Arguments

x

Vector of values to clamp

xlo

Lower end of the range

xhi

Upper end of the range


JGCRI/gcamrpt documentation built on June 30, 2019, 8:41 a.m.