Description Usage Arguments Value Examples
Finds the max index in a vector that does not exceed a target number.
1 | find_max_ind(vals, target, start = 1)
|
vals |
A vector of numbers. |
target |
A number. Must not be smaller than |
start |
A number, the starting index; default to 1. Must be such that |
The max index i
such that vals[i] <= target
and i >= start
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.