... 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 ______________________________________________ [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.
