indexMatch {rindex}R Documentation

Mid level search: match set

Description

Find (lowest/highest) index positions for set of search values

Usage

 indexMatch(obj, x, findlow = TRUE, what = c("ind", "pos", "val"))

Arguments

obj an object of class ‘index’
x a vector of search values
findlow FALSE to take highest instance (default TRUE)
what on of c("ind", "pos", "val")

Details

indexMatch finding positions of vector of search values

Value

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

Note

indexMatch warns if called on a non-unique index. This warning can be suppressed by giving parameter findlow explicitely.

Author(s)

Jens Oehlschlägel

See Also

index, indexFind, indexFindInterval, match


[Package rindex version 0.08 Index]