Fill gaps not working

Hi All

I imported this file:

https://1drv.ms/x/s!AhnqnH5Lu1_2htJi0o8dAj3vVN2waw?e=hcpE1U

library("tidyverse")
library("lubridate")
library("tsibble")
library("tsibbledata")
library("feasts")
library("fable")
library("distributional")
library("writexl")
library("readxl")
Example_turn <- read_xlsx("data/Book1 with NAs (missing_values).xlsx")

tSibble_example_turn <- Example_turn %>%
  mutate(Month=yearmonth(Month)) %>% 
  as_tsibble(key=Country,index=Month)

tSibble_example_turn %>% 
  autoplot()
tSibble_example_turn %>%
  fill_gaps()

it is not doing anything with the NA´s... apparently

You need to specify what you want the NAs replaced with. For example,

tSibble_example_turn %>%
  fill_gaps(Observation = 0)

it doesn´t work i created a new post which i think is more clear.
please see
Fill gaps not working when importing xlsx

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.