Match
Return the positions of its first argument that matches in its second.
Match(x,key=NULL)
x |
A numeric vector. |
key |
The value/vector for searching in vector x. For now let it NULL. dont't use it!. |
This function implements the R's \"match\" function. This version basicaly calculates the match(x,sort(unique(x))) for now. Do not use the argument key!
Returns the position/positions of the given key/keys in the x vector.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>
y <- rnorm(100) a <- Match(y) b <-50 all.equal(as.vector(a),as.vector(b))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.