Match

Description

Match.

Usage

1
Match(x,key)

Arguments

x

A numeric vector.

key

The value for searching the key.

Details

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

Value

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

Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>

See Also

match

Examples

1
2
3
4
y <- rnorm(100)
a <- Match(y,50)
b <- match(50,y)
all.equal(as.vector(a),as.vector(b))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.