I understand how to create a monthly tsibble and quaterly
tibble_example %>% mutate(Month = yearmonth(Month)) %>% as_tsibble(index = Month)
tibble_quaterly <- read_csv("data/prison_population.csv") tibble_quaterly %>% mutate(Quarter = yearquarter(Date)) %>% as_tsibble(key = c(State, Gender, Legal, Indigenous),index = Quarter) %>% print()
According to the book we would use start:end but i cannot work out the code
how do you create a YEARLY tsibble from an excel spreadsheet xlsx?
can you give me an example that contains several keys¿?
also is there a good guide/Manual that contains examples for Tsibbles? ( I have so many questions..)
thanks in advance!