Skip to content
Prev 256146 / 398506 Next

df with max function applied to 6 lags of a variable?!?

On Thu, Apr 7, 2011 at 2:29 PM, Rita Carreira <ritacarreira at hotmail.com> wrote:
See rollmax in the zoo package and see ?rollmax for the various
options.  e.g. using the built in BOD data frame:
Time demand
1   NA     NA
2   NA     NA
3    3   19.0
4    4   19.0
5    5   19.0
6    7   19.8