## day zero (epoch): Jan 1, 1970
as.Date(0)
## conversion of July 2000 to date (beginning, mid or end of month)
ym <- yearmon(2000.5)
as.Date(ym, frac = 0)
as.Date(ym, frac = 0.5)
as.Date(ym, frac = 1)
## conversion of quarterly time series to dates (beginning of the months)
x <- ts(1:4, start = 2000, freq = 4)
as.Date(x)
Run the code above in your browser using DataLab