(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 NA values.)

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 (zoo, chron etc) but couldn't find anything satisfactory.