A range index can be used to extract or replace a continuous ascending part of the data
ri(from, to = NULL, maxindex = NA)
# S3 method for class 'ri'
print(x, ...)A two element integer vector with class 'ri'
bit(12)[ri(1, 6)]
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE
#> attr(,"vmode")
#> [1] "boolean"