Learn R Programming

Rfast (version 1.2)

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)
Match(y,50) == match(50,y)

Run the code above in your browser using DataLab