Learn R Programming

rindex (version 0.12.1)

indexEQ: High level comparison function

Description

Compare index against value

Usage

indexEQ(obj, x, what = c("pos", "val", "ind"), ...)
indexNE(obj, x, what = c("pos", "val", "ind"), ...)
indexLT(obj, x, what = c("pos", "val", "ind"), ...)
indexLE(obj, x, what = c("pos", "val", "ind"), ...)
indexGT(obj, x, what = c("pos", "val", "ind"), ...)
indexGE(obj, x, what = c("pos", "val", "ind"), ...)

Arguments

obj

an object of class ‘index’

x

a scalar comparison value

what

on of c("ind", "pos", "val")

further arguments passed to indexFindInterval

Value

A vector of original positions (pos), index positions (ind) or values (val).

Details

indexEQ index EQual value
indexNE index NotEqual value
indexLT index LowerThan value
indexGT index GreaterThan value
indexLE index LowerEqual value
indexGE index GreaterEqual value

See Also

index, indexFindInterval, ==.index