Learn R Programming

MAPCtools (version 0.1.0)

clamp: Clamp a numeric value within bounds

Description

Internal helper to restrict values between a lower and upper bound.

Usage

clamp(x, lower, upper)

Value

A numeric vector with values clamped.

Arguments

x

A numeric vector.

lower

Lower bound.

upper

Upper bound.