[R] fast code

Pantelis Andreou pan at mathstat.dal.ca
Fri Dec 6 18:13:02 CET 2002


Hello,
I have two vectors x1 and x2 both in increasing order.
I want to select the x1[j]th entry which is the max min of the x2[i]th
entry. I can do this using if and for statements but is there a quick way
to do it without running a loop?
Thank you in advance,
Pantelis




More information about the R-help mailing list