Learn R Programming

bit (version 4.5.0.1)

ri: Range index

Description

A range index can be used to extract or replace a continuous ascending part of the data

Usage

ri(from, to = NULL, maxindex = NA)

# S3 method for ri print(x, ...)

Value

A two element integer vector with class 'ri'

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

Author

Jens Oehlschlägel

See Also

as.hi

Examples

Run this code

 bit(12)[ri(1,6)]

Run the code above in your browser using DataLab