How to convert year and quarter column into date using zoo?
I’m trying to convert a data-frame column into date format. I’m using the zoo package, but can’t get it to work. The desired output is either yyyy-mm-dd, so 4 dates per year. This is what I’ve tried so far: library(dplyr) library(zoo) as.yearqtr(1930, Q2) as.yearqtr(1930, Q2, format = "%Y %Q%q") To clarify. With the following code… Read More How to convert year and quarter column into date using zoo?