... seq(a, b, length = ifelse(a <= b, b - a + 1, 0)) seq(a,b,length = max(0,b-a+1)) seems a bit simpler and more transparent. -- Bert Bert Gunter Genentech Nonclinical Statistics South San Francisco, CA 94404