Skip to content
Prev 205352 / 398506 Next

Question on Reduce + rollmean

For this example try this:

lapply(lapply(list('head', 'tail'), do.call, list(x, n = -1)),
function(x)Reduce('+', x)/2)


On Mon, Jan 4, 2010 at 1:54 PM, Muhammad Rahiz
<muhammad.rahiz at ouce.ox.ac.uk> wrote: