ri: Range index

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
3
ri(from, to = NULL, maxindex=NA)
## S3 method for class 'ri'
print(x, ...)

Arguments

from

first position

to

last posistion

x

an object of class 'ri'

maxindex

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

...

further arguments

Value

A two element integer vector with class 'ri'

Author(s)

Jens Oehlschlägel

See Also

as.hi.ri

Examples

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

Example output

Attaching package bit
package:bit (c) 2008-2012 Jens Oehlschlaegel (GPL-2)
creators: bit bitwhich
coercion: as.logical as.integer as.bit as.bitwhich which
operator: ! & | xor != ==
querying: print length any all min max range sum summary
bit access: length<- [ [<- [[ [[<-
for more help type ?bit

Attaching package: 'bit'

The following object is masked from 'package:base':

    xor

[1] FALSE FALSE FALSE FALSE FALSE FALSE
attr(,"vmode")
[1] "boolean"

bit documentation built on May 2, 2019, 4:48 p.m.