Skip to content
Prev 1555 / 15274 Next

Aggregating Statistics By Time Interval

I still get no warning.  Please provide complete self contained input
and output.
+  1185882792, 1185882795), spread = c(1e-04, 1e-04, 2e-04, 1e-04,
+  2e-04, 3e-04))
+  function(dat) {
+    data.frame(tapply(diff(dat$time), head(dat$spread, -1),
+  sum)/sum(diff(dat$time)) * 100.0)
+ }
1e-04    2e-04
07 66.66667 33.33333
[1] "R version 2.5.1 (2007-06-27)"
On 8/3/07, Rory Winston <rory.winston at gmail.com> wrote: