bound: Bound a vector

Description Usage Arguments Value

Description

This unexported helper function bounds a numeric vector on a minimum and maximum value.

Usage

1
bound(x, min = 0.01, max = 0.99)

Arguments

x

Numeric vector to be bounded

min

Minimum allowed value for vector "x"; default is 0.01

max

Maximum allowed value for vector "x"; default is 0.99

Value

Numeric vector of the same length as x with no values less than minimum nor greater than maximum.


vpnagraj/twoxtwo documentation built on Nov. 3, 2021, 6:20 p.m.