Rolling mean for nonuniform data.

Description

Produce a rolling average for data sampled at non-uniform time intervals.

Usage

1

Arguments

x

numeric vector of values to be rolled.

t

numeric vector of time values corresponding to elements in x.

window

size of the window in terms of t. E.g. 30 (seconds).