binRate: Locator of the proper bin (index) of a rate.

Description Usage Arguments Value See Also

Description

binRate takes a vector of values that it interprets as endpoints of bins, among which a rate is to be placed. It wraps findInterval binary search as the strategy for determining the index of the "bin" into

Usage

1
binRate(rate, bounds, sorted = FALSE, nonnegative = TRUE, leOne = TRUE)

Arguments

rate

Rate for which to find bin placement.

sorted

Whether the bounds have been sorted.

nonnegative

Whether the rate is required to be nonnegative.

leOne

Whether the rate is required to be no more than one.

endpoints

Vector of bin bounds.

Value

Index of the bin into which the rate should be placed.

See Also

findInterval


vreuter/SwissR documentation built on May 14, 2019, 11:29 a.m.