Re: [Rd] Issue with aggregate.ts and/or %\% on Windows

2010-04-20 Thread Prof Brian Ripley
However, in this case it is the use of %/% that is wrong: the fuzz ts.eps is supposed to be used. Will alter (in R-devel for now). On Tue, 20 Apr 2010, Peter Dalgaard wrote: Patrick Aboyoun wrote: I've stumbled across an issue with aggregate.ts that either is due to a misuse of %/% or someth

Re: [Rd] Issue with aggregate.ts and/or %\% on Windows

2010-04-19 Thread Peter Dalgaard
Patrick Aboyoun wrote: > I've stumbled across an issue with aggregate.ts that either is due to a > misuse of %/% or something deeper relating to numerical precision on > Windows. The test code is > > x <- rep(6:10, 1:5) > as.vector(aggregate(as.ts(x), FUN = mean, ndeltat = 5)) > > On Linux and

[Rd] Issue with aggregate.ts and/or %\% on Windows

2010-04-19 Thread Patrick Aboyoun
I've stumbled across an issue with aggregate.ts that either is due to a misuse of %/% or something deeper relating to numerical precision on Windows. The test code is x <- rep(6:10, 1:5) as.vector(aggregate(as.ts(x), FUN = mean, ndeltat = 5)) On Linux and Mac I get the correct answer > x <- r