[R] get index of elements in vector

Hans-Peter gchappi at gmail.com
Thu Sep 28 17:13:14 CEST 2006


2006/9/28, Cleber N. Borges <cborges at iqm.unicamp.br>:
> 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 )

which( vector == 200 )

-- 
Regards,
Hans-Peter



More information about the R-help mailing list