rollApply: Applies a function to a rolling window along any data object.

Description Usage Arguments

Description

Similar but not identical to rollapply in package zoo, with the advantage that it works on any type of data structure (vector, list, matrix, etc) instead of requiring a zoo object. } { rollApply(1:100,sum,minimum=2,window=2) rollApply(1:100,sum,minimum=2,window=2,align='right') }

Usage

1
rollApply(data, fun, window = len(data), minimum = 1, align = "left")

Arguments

fun

the function to evaluate

...

all other arguments to be passed to fun


cvarrichio/hordr documentation built on May 14, 2019, 12:53 p.m.