Skip to content
Prev 256161 / 398506 Next

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

On Thu, Apr 7, 2011 at 4:25 PM, Rita Carreira <ritacarreira at hotmail.com> wrote:
I must have had the development version of zoo loaded at the time.
Try it with that:
...various output not of interest...
Time demand
1   NA     NA
2   NA     NA
3    3   19.0
4    4   19.0
5    5   19.0
6    7   19.8

Alternately convert it to zoo first (this uses the CRAN version of zoo):
Time demand
1   NA     NA
2   NA     NA
3    3   19.0
4    4   19.0
5    5   19.0
6    7   19.8