Extend a weekly times series into daily
问题 I have an xts time series of weekly values Jan 4 2004, 0.99 Jan 11 2004, 1.11 Jan 18 2004, 1.06 .... and I want to covert it to daily values Jan 4 2004, 0.99 Jan 5 2004, 0.99 Jan 6 2004, 0.99 .... Jan 10 2004, 0.99 Jan 11 2004, 1.11 Jan 12 2004, 1.11 Jan 13 2004, 1.11 .... where each value is replicated for the following 6 days. How can I do this in R? 回答1: The data you show are not an xts series. I assume that is how the data are represented in a CSV file. To answer your question, I'm going