Not really sure how to do an minimal example about my issue, I would like to change a ts object to a tsibble one with my particular csv file,
Some help would be appreciated:
library(fable)
library(readxl)
library(tidyverse)
data <- read_xlsx("Airline Passengers, Australia, 2010-2019.xlsx")
data <- data$...4
data <- data[2:length(data)]
data_time_s <- ts(
value = data,
start = 1949,
end = 1960,
frequency = 12
) %>%
as_tsibble()
Maybe there is other really simple way to do that....