[R] position of an element in a vector

Deepayan Sarkar deepayan at stat.wisc.edu
Thu Feb 13 23:04:03 CET 2003


On Thursday 13 February 2003 03:40 pm, Jason Bond wrote:
> Hello.  Sorry for the elementary post.  I've looked through the
> documentation, but can't seem to find a function which allows one to
> extract the position of an element within a list...for example the position
> of the element 4 in the vector c(1,2,4,3,6) is 3.  Thanks much for any
> help.
>    Jason
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help

More information about the R-help mailing list