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, ...)

Arguments

from

first position

to

last posistion

maxindex

the maximal length of the object-to-be-subscripted (if known)

x

an object of class 'ri'

...

further arguments

Value

A two element integer vector with class 'ri'

See also

Author

Jens Oehlschlägel

Examples


 bit(12)[ri(1, 6)]
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE
#> attr(,"vmode")
#> [1] "boolean"