bound {twoxtwo}R Documentation

Bound a vector

Description

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

Usage

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.


[Package twoxtwo version 0.1.0 Index]