Skip to content
Prev 1646 / 15274 Next

rollapply and cummin

Using gsubfn its also possible to write it in a way which allows the
function body to be specified as a formula for compactness.  Note
the fn$ prefix:

   library(gsubfn)
   fn$rollapply(z, 5, ~ min(cumsum(x)), align = "left")

More at
   http://gsubfn.googlecode.com
On 8/23/07, Voss, Kent <VOSSK at kochind.com> wrote: