Re: [Rd] Bug in print.Arima and patch

2009-06-05 Thread Prof Brian Ripley
On Fri, 5 Jun 2009, Gavin Simpson wrote: On Fri, 2009-06-05 at 15:42 +0100, Prof Brian Ripley wrote: Why not use NROW? No reason - had forgotten this existed. I was testing NROW after having seen the R-help message, so will go ahead with that solution. But as I was doing so, something urg

Re: [Rd] Bug in print.Arima and patch

2009-06-05 Thread Gavin Simpson
On Fri, 2009-06-05 at 15:42 +0100, Prof Brian Ripley wrote: > Why not use NROW? No reason - had forgotten this existed. So here is another patch: [ga...@desktop ~]$ svn diff ~/R/devel/src/ Index: /home/gavin/R/devel/src/library/stats/R/arima.R

Re: [Rd] Bug in print.Arima and patch

2009-06-05 Thread Prof Brian Ripley
Why not use NROW? On Fri, 5 Jun 2009, Gavin Simpson wrote: Dear List, A posting to R-Help exposed this problem with the print method for objects of class Arima: set.seed(1) x <- arima.sim(n = 100, list(ar = 0.8897, ma = -0.2279)) mod <- arima(x, order = c(1,0,1)) coefs <- coef(mod) mod2 <- a