[R] Bug in 0.62.4 -- patch
Martin Maechler
maechler at stat.math.ethz.ch
Wed Oct 28 15:24:47 CET 1998
>>>>> "Jim" == Jim Lindsey <jlindsey at alpha.luc.ac.be> writes:
Jim> Please try seq(2,2,by=2)
Thank you, Jim.
seq(.) did contain much better tests in some cases, but I've overlooked
that one.
Here is the patch to be applied in
R-0.62.4/src/library/base/R/ :
--- seq.R.~1~ Wed Sep 9 09:35:11 1998
+++ seq.R Wed Oct 28 15:22:14 1998
@@ -18,7 +18,9 @@
from:to
else {
n <- (del <- to - from)/by
- if(is.na(n)) {
+ if(del == 0)
+ return(from)
+ else if(is.na(n)) {
if(by == 0 && del == 0)
return(from)
else stop("invalid (to - from)/by in seq(.)")
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list