which.xy: Get indexes of a vector or an element in other unique vector.

Description Usage Arguments References See Also Examples

View source: R/which.xy.R

Description

Get indexes of a vector or an element in other unique vector.

Usage

1
which.xy(x, y)

Arguments

x

A vector or an element.

y

A vector with no duplicate elements.

References

http://stackoverflow.com/questions/5577727/is-there-an-r-function-for-finding-the-index-of-an-element-in-a-vector

See Also

which,match,%in%

Examples

1
2
which.xy(c(2,21,3,10,20), 1:10)
c(2,21,3,10,20) %in% 1:10

lixiangchun/lxctk documentation built on May 21, 2019, 6:44 a.m.