[R] get index of elements in vector

From: Cleber N. Borges <cborges_at_iqm.unicamp.br>
Date: Thu 28 Sep 2006 - 15:01:34 GMT

Hello all

Is There a fuction that return a index of a element in vector? like this semantic example:

vector = c( 100, 200, 300 )

getINDEX( vector, value = 200 )

Thanks in advance for your attention.

Cleber Borges

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri Sep 29 01:06:35 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 28 Sep 2006 - 15:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.