clip_bounds: Clip values to lower and upper bounds

View source: R/utils.R

clip_boundsR Documentation

Clip values to lower and upper bounds

Description

Restricts each element of a vector to the given bounds.

Usage

clip_bounds(x, lower, upper)

Arguments

x

Numeric vector.

lower

Lower bound vector.

upper

Upper bound vector.

Value

A bounded numeric vector.


SBOAtools documentation built on May 3, 2026, 9:06 a.m.