cap: cap

Description Usage Arguments Value

Description

Imposes lower and upper bounds on a value.

Usage

1
cap(x, lbnd = -Inf, ubnd = Inf)

Arguments

x

- Input

lbnd

- The lower bound. Defaults to -Inf

ubnd

- The upper bound. Defaults to Inf

Value

Returns the input value if it's within the bounds. If the input exceeds one of the bounds, cap returns the bound value instead.


christiantillich/AnaliTools documentation built on May 13, 2019, 6:59 p.m.