Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selecting a mable column loses the key #297

Closed
robjhyndman opened this issue Dec 20, 2020 · 1 comment
Closed

selecting a mable column loses the key #297

robjhyndman opened this issue Dec 20, 2020 · 1 comment
Milestone

Comments

@robjhyndman
Copy link
Member

library(fpp3)

caf_fit <- global_economy %>%
  filter(Code == "CAF") %>% 
  model(
    arima210 = ARIMA(Exports ~ pdq(2,1,0)),
    search = ARIMA(Exports, stepwise=FALSE)
  )
caf_fit %>% select(search)
#> Error in resp_var[[1]]: subscript out of bounds
caf_fit %>% select(Country,search)
#> # A mable: 1 x 2
#> # Key:     Country [1]
#>   Country                          search
#>   <fct>                           <model>
#> 1 Central African Republic <ARIMA(3,1,0)>

Created on 2020-12-20 by the reprex package (v0.3.0)

@mitchelloharawild mitchelloharawild added this to the v0.2.2 milestone Jan 4, 2021
@mitchelloharawild
Copy link
Member

library(fpp3)

caf_fit <- global_economy %>%
  filter(Code == "CAF") %>% 
  model(
    arima210 = ARIMA(Exports ~ pdq(2,1,0)),
    search = ARIMA(Exports, stepwise=FALSE)
  )
caf_fit %>% select(search)
#> # A mable: 1 x 1
#>           search
#>          <model>
#> 1 <ARIMA(3,1,0)>
caf_fit %>% select(Country,search)
#> # A mable: 1 x 2
#> # Key:     Country [1]
#>   Country                          search
#>   <fct>                           <model>
#> 1 Central African Republic <ARIMA(3,1,0)>

Created on 2021-01-07 by the reprex package (v0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants