powered by
Transform monthly or quarterly ts() data to a dataframe
ts_to_df(x, end_period = TRUE)
ts() format data which is either monthly or quarterly
T/F, for monthly or quarterly data, should dates be indexed to the end of the period?
Data in dataframe format
# NOT RUN { x <- ts(c(1,2,3,4), start=c(2020,1), end=c(2020,4), frequency=4) ts_to_df(x) # }
Run the code above in your browser using DataLab