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.


twoxtwo documentation built on July 9, 2021, 9:08 a.m.