coerce_within: Coerce values of x two be within the range of the bounds b.

Description Usage Arguments Value

Description

Coerce values of x two be within the range of the bounds b.

Usage

1
coerce_within(x, b = c(0, 1))

Arguments

x

numeric vector

b

two element numeric vector of [min,max] defining bounds

Value

a numeric vector same length as x with all values within bounds b


btupper/spnc documentation built on May 13, 2019, 8:44 a.m.