title: Change frequency time series in R
body: <p>As input I have a time series known at daily time points. We may refer to this time series as <code>_x_</code>. The object <code>_x_</code> is a time series, i.e. consisting of dates and measurements.</p>
  
  <p>I would like to investigate the effect of keeping the time series constant in each month. In other words, I would like to have a new time series <code>_y_</code> that still has a daily frequency but the observations in the months are kept constant equal to the first value in the month.</p>
  
  <p>I have looked into this and tried to use the <code>'tempdisagg'</code> package, specifically the <code>'td'</code> function. However, this seems too complicated for my purpose and requires a formula as input. Furthermore supposing each month has 30 days will create a discrepancy between <code>_x_</code> and <code>_y_</code>, which is not desirable as the length of the time series is several years.</p>
  
  <p><em>Is there a solution to enable this?</em></p>