Dear All
please help with the following:
I have:
a <-seq(0,10,by=1)
b <-c(10:20)
d <-cbind(a,b)
f <-16
I would like to select the value in column a based on a value in column b,
where the value in column b is the 1st value that is smaller then f. Thus I
should end up with the number 5 because the 1st value that is below 16 would be
15, and in the same row column a has the number 5....
appreciate your insights,
andras
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.