[R] Easy way?

About this list Date view Thread view Subject view Author view Other groups

Subject: [R] Easy way?
From: Yves Gauvreau (cyg@sympatico.ca)
Date: Mon 26 Jun 2000 - 09:47:59 EST


Message-ID: <006f01bfdeff$cc85c9d0$0201a8c0@Workgroup>

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

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:24 EST