shrinkToRange: Shrink the dynamic range of a numeric vector, matrix, or data...

View source: R/util.R

shrinkToRangeR Documentation

Shrink the dynamic range of a numeric vector, matrix, or data frame

Description

Values outside the range will be set as the lower or upper boundary of the range.

Usage

shrinkToRange(x, theRange)

Arguments

x

the values to modify.

theRange

two values specifying the lower and upper boundary of the range.

Value

Returns the shrunk object.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

shrinkToRange(1:10,c(2,6))

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.