Skip to content
Prev 280505 / 398502 Next

block averaging data frames

Does this work for you:
+ 1 2011-11-01 00:00:00 2.732447            17.30          30.0
      14.0              39.5           17.83
+ 2 2011-11-01 00:10:00 2.731534            17.46          15.3
      11.1              24.6           17.95
+ 3 2011-11-01 00:20:00 2.731368            17.43          28.7
      24.6              30.7           17.93
+ 4 2011-11-01 00:30:00 2.730703            17.36          40.4
      29.8              43.5           17.86
+ 5 2011-11-01 00:40:00 2.729567            17.26          41.6
      40.5              42.6           17.76"
+     , header = TRUE
+     )
+             , to = max(x$timestamp) + 3600  # make sure you have the
last range
+             , by = '30 min'
+             )
LwTempDownelling LwDownwelling LwDownwelling_min LwDownwelling_max
LwTempUpwelling
1         17.39667      24.66667          16.56667             31.60
     17.90333
2         17.31000      41.00000          35.15000             43.05
     17.81000
            timestamp
1 2011-11-01 00:00:00
2 2011-11-01 00:30:00
On Mon, Dec 19, 2011 at 4:28 AM, Mathew Brown
<mathew.brown at forst.uni-goettingen.de> wrote: