get_indices.Rd
Get adjacent indices
get_indices(x, max_x, k = 1)
Origin index.
Max value.
Numeric value with the range of the indices.
Vector with indices
get_indices(1, 10) #> [1] 1 2 get_indices(1, 10, 5) #> [1] 1 2 3 4 5 6