[R] Sliding Window Time Series Analysis - hourly rainfall

2008-01-24 Thread Jamie Ledingham
I have a time series of rainfall in a dataframe. I would like to be able to aggregate this using a sliding window approach- i.e. a new 24 hourly total is calculated for each hours rainfall. I'm struggling to understand how this might be achieved - currently I've tried looping a sum function to

Re: [R] Sliding Window Time Series Analysis - hourly rainfall

2008-01-24 Thread jim holtman
Take a look at filter for doing a moving average. On Jan 24, 2008 6:48 AM, Jamie Ledingham [EMAIL PROTECTED] wrote: I have a time series of rainfall in a dataframe. I would like to be able to aggregate this using a sliding window approach- i.e. a new 24 hourly total is calculated for each