Hi all

I have been looking (in the help archives) for a function
which does a moving average. Nothing new, I know.
But I am looking for a function which is very flexible:
The user should be able to input a vector of breaks
which define the bins (and not just the number of observations in a bin).
The function would then calculate which observations fall into this bin
and calculate, say, an average.
Another parameter should be the overlap (probably only when
the breaks of the bins are equidistant).

I am sure I am not the first one to think about this problem.
Thanks for any hints.
Hadassa



-- 
Hadassa Brunschwig
PhD Student
Department of Statistics
The Hebrew University of Jerusalem
http://www.stat.huji.ac.il

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to