clamp: Clamp a numeric value within bounds

View source: R/internal-plotting_helpers.R

clampR Documentation

Clamp a numeric value within bounds

Description

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

Usage

clamp(x, lower, upper)

Arguments

x

A numeric vector.

lower

Lower bound.

upper

Upper bound.

Value

A numeric vector with values clamped.


MAPCtools documentation built on June 25, 2025, 5:09 p.m.