
Find Interval Numbers or Indices and Return Custom Number For 0.
Source:R/helpers.R
h_find_interval.RdA simple wrapper of base::findInterval() function that invokes
base::findInterval(), takes its output and replaces all the
elements with \(0\) value to a custom number as specified in replacement
argument.
Arguments
- ...
further arguments passed to
base::findInterval()function.- replacement
(
number)
a custom number to be used as a replacement for \(0\). Default to-Inf.