Hi All, I have a time series data with two continuous variables (say Var1 and Var2) for 4 years (***not continuous, do have some breaks because of missing data***). Something like this:
Date Var1 Var2 12/01/2004 7 0 12/01/2004 0 0 12/01/2004 0 7 12/01/2004 7 0 12/01/2004 0 7 12/01/2004 0 7 12/02/2004 0 0 ... I need to find out weekly average of var1 and var2, so that I end up with data like: Week Year Var1 Var2 week1 2004 2 3 week2 2004 4 2 ... week52 2004 4 4 week1 2005 2 3 ... Can anyone help please, any help would be greatly appreciated. Thanks! [[alternative HTML version deleted]] ______________________________________________ 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.