Rfast (version 1.7.3)

Match : Match

Description

Match.

Usage

Match(x,key)

Arguments

x
A numeric vector.
key
The value for searching the key.

Value

Returns the position of the given key in the x vector.

Details

This function implements the R's "match" function.

See Also

match

Examples

Run this code
y <- rnorm(100)
a <- Match(y,50)
b <- match(50,y)
all.equal(as.vector(a),as.vector(b))

Run the code above in your browser using DataLab