[R] Easy way?

Yves Gauvreau cyg at sympatico.ca
Mon Jun 26 01:47:59 CEST 2000


Hi,

Say I have this vector x <- sort(rnorm(n)). I'd like to know if there is a nice way to find out the index of the nearest x to say 1.5?

Thanks

YG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000625/be875885/attachment.html


More information about the R-help mailing list