I'd like to store quarterly data using a number representation where the left side represents the year and the right the quarter.
This is my code
library(tidyverse)
library(fpp)
ausbeer %>%
as_tibble %>%
select(megalitres = x) %>%
mutate(year = as.double(seq(1956, 2009, 0.25)[1:211]))
For some reason, it will only show the year as integers, and it won't show the decimals.
I've checked and it's the right data underneath but I'm having a hard time making it show up.
I don't want to code them as characters because that will make visualization more difficult