Hello Rui, I didn't see your post before I posted. I'll try that out tomorrow. Many thanks. -- View this message in context: http://r.789695.n4.nabble.com/Averaging-within-a-range-of-values-tp4291958p4294137.html Sent from the R help mailing list archive at Nabble.com.