BASIX.match: Value Matching for sorted vectors.

Description Usage Arguments Details Author(s) Examples

Description

The function returns a vector of the positions of (first) matches of its first argument in its second.

Usage

1
BASIX.match(elements,vec)

Arguments

elements

values to be matched

vec

the values to be matched against

Details

BASIX.match stops at the first match and continues with the next element of elements starting from the match position in vec.

The native R solution would be:

match(elements,vec)

Author(s)

Bastian Pfeifer

Examples

1
2
3
4
elements <- c(1,2,10)
vec      <- c(2,3,4,10,11)

BASIX.match(elements,vec)


Search within the BASIX package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.