Index for evaluation of step functions.
Returns an index of positions. Intended for evaluating a step function at selected times. The function counts how many elements of a vector, e.g. the jump times of the step function, are smaller or equal to the elements in a second vector, e.g. the times where the step function should be evaluated.
Numeric vector: e.g.\ the unique jump times of a step function.
Numeric vector: e.g.\ the times where the step function should be evaluated
If "greater" count the number of jump times that are greater (greater or equal when strict==FALSE) than the eval times
If TRUE make the comparison of jump times and eval times strict
jump.times are greater than a particular
0. This must be considered when sindex is used for
subsetting, see the Examples below.
Index of the same length as
eval.times containing the numbers
jump.times that are smaller than or equal to
Thomas A. Gerds firstname.lastname@example.org
1 2 3 4 5 6 7
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.