MovetoRange: Clamp a value to a specified range.

Description Usage Arguments Value Examples

View source: R/CDFtestingSuite.R

Description

Returns a vector of elements clamped to the specified minimum and maximum

Usage

1

Arguments

val

A value to clamp.

range

A vector of length 2 in the form c(min, max)

Value

A single value that is either unchanged or clamped upward to minimum or clamped downward to the maximum

Examples

1
MovetoRange(11, c(1,10))

CDF.PSIdekick documentation built on May 30, 2017, 5:09 a.m.