Learn R Programming

rindex (version 0.12.1)

match: High level match function/operator

Description

Match values in index

Usage

match.index(x, table, nomatch = NA)
match.rindex(x, table, nomatch = NA)

Arguments

x

a set of search values

table

an object of class ‘index’ or a simple vector

nomatch

the value to return for non-matches (default NA)

Value

Functions match.index and match.rindex return a vector of original positions (or the nomatch value NA).

See Also

index, indexFind, indexMatch, match