Re: [R] Sampling data every third hour

2011-12-14 Thread R. Michael Weylandt
1) Use dput() to submit data. 2) Would this work? (It requires your data are evenly spaced, but I think that's it) d[seq(1, nrow(d), by = 3), ] Michael On Wed, Dec 14, 2011 at 7:17 AM, abcdef ghijk wrote: >  Good Morning , > > I want to sample the following time series for every third hour. For

[R] Sampling data every third hour

2011-12-14 Thread abcdef ghijk
 Good Morning , I want to sample the following time series for every third hour. For example at 00:00,03:00,06:00,09:00 etc.     2011-01-01 00:00:00 0.00e+00 2011-01-01 01:00:00 1.471667e+01 2011-01-01 02:00:00 1.576667e+01 2011-01-01 03:00:00 0.00e+00 2011-01-01 04:00: