Skip to content

bind_rows<fable>() fails when index column position differs #247

Description

@mitchelloharawild
library(fable)
#> Loading required package: fabletools
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
fc <- as_tsibble(mdeaths) %>% 
  model(SNAIVE(value)) %>% 
  forecast()
fc %>% 
  mutate(.model = "a") %>% 
  relocate(.mean) %>% 
  bind_rows(fc)
#> Error: Unsupported index type: character

Created on 2020-08-05 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions