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


BigelowLab/spnc documentation built on May 5, 2019, 2:45 p.m.