limitToRange: Limit Values to Interval

View source: R/convert.R

limitToRangeR Documentation

Limit Values to Interval

Description

limit the values in x so that each value lies within the closed interval [left, right]

Usage

limitToRange(x, left = .Machine$double.eps, right = 1)

Arguments

x

vector of numeric values

left

lower boundary

right

upper boundary

Examples

limitToRange(1:20, left = 5, right = 15)


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.