title: How do I resample and interpolate timeseries data in R?
body: <p>I have measurements that have been recorded approximately every 5 minutes:</p>
  
  <pre><code>2012-07-09T05:30:01+02:00   1906.1  1069.2  1093.2  3   1071.0  1905.7  
  2012-07-09T05:35:02+02:00   1905.7  1069.2  1093.0  0   1071.5  1905.7  
  2012-07-09T05:40:02+02:00   1906.1  1068.7  1093.2  0   1069.4  1905.7  
  2012-07-09T05:45:02+02:00   1905.7  1068.4  1093.0  1   1069.6  1905.7  
  2012-07-09T05:50:02+02:00   1905.7  1068.2  1093.0  4   1073.3  1905.7  
  </code></pre>
  
  <p>The first column is the data's timestamp. The remaining columns are the recorded data.</p>
  
  <p>I need to resample my data so that I have one row every 15 minutes, e.g. something like:</p>
  
  <pre><code>2012-07-09T05:15:00 XX XX XX XX XX XX
  2012-07-09T05:30:00 XX XX XX XX XX XX
  ....
  </code></pre>
  
  <p>(In addition, there may be gaps in the recorded data and I would like gaps of more than, say, one hour to be replaced with a row of <code>NA</code> values.)</p>
  
  <p>I can think of several ways to program this by hand, but is there built-in support for doing that kind of stuff in R? I've looked at the different libraries for dealing with timeseries data (<code>zoo</code>, <code>chron</code> etc) but couldn't find anything satisfactory.</p>