Awesome, that works great, and it cuts my runtime down by a lot. thanks baptiste
I totally forgot that I could just check to see if the number was inbetween via less than and greater than rather than having to construct the vector. findInterval also helps with another problem I was having somewhere else... -- View this message in context: http://r.789695.n4.nabble.com/find-value-between-two-other-numbers-tp2323513p2324409.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org 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.