Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-03 Thread Rui Barradas
Hello, You can solve the problem in two different ways. 1. Redefine storage1 as a matrix and extract the aic *in* the loop. storage1 <- matrix(0, 4, 4) for(p in 0:3){ for(q in 0:3){ storage1[p + 1, q + 1] <- arima(etc)$aic } } 2. define storage1 as a list. storage1 <- vector("list",

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-03 Thread ismael ismael via R-devel
It works!!! Thank you so much for your help! Sent from my iPhone > On Feb 3, 2020, at 3:47 AM, Rui Barradas wrote: > > Hello, > > You can solve the problem in two different ways. > > 1. Redefine storage1 as a matrix and extract the aic *in* the loop. > > storage1 <- matrix(0, 4, 4) > for(p

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-03 Thread Martin Maechler
> ismael ismael via R-devel > on Mon, 3 Feb 2020 04:09:24 -0600 writes: > It works!!! > Thank you so much for your help! and it was an "R help" question which Rui so generously answered. But this is the R-devel mailing list. Please do *NOT* misuse it for R-help questions

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-03 Thread Rui Barradas
Hello, Inline. Às 11:04 de 03/02/20, Martin Maechler escreveu: ismael ismael via R-devel on Mon, 3 Feb 2020 04:09:24 -0600 writes: > It works!!! > Thank you so much for your help! and it was an "R help" question which Rui so generously answered. But this is the R-devel mail

[Rd] ALTREP "wrapper" classes needs an Extract_subset method

2020-02-03 Thread Davis Vaughan
Hi all, I believe I have found a bug (or perhaps just an oversight) with the ALTREP wrapper classes. The short form of this is that I believe that the wrapper classes need to override the default ALTREP `Extract_subset_method()` with a method that calls `Extract_subset()` on the "wrapped" object.

Re: [Rd] [External] ALTREP "wrapper" classes needs an Extract_subset method

2020-02-03 Thread luke-tierney
It's not a bug as there will always be cases where ALTREP will need to fall back. But it does look like something that would be good to address. So please file it as a wishlist item and I'll look at a patch if you have one. As to your issue at the end, it seems to me that you should probably have