Dear all, given a daily time series data, I am able to calculate monthly average, quarterly average like:
 
library(zoo)
dat <- zooreg(rnorm(500), start=as.Date("2000-01-01"), frequency=1)
mo.ave <- aggregate(dat, as.yearmon(index(dat)), "mean")
head(dat)
head(mo.ave)

However is there any direct way like above to calculate the weekly average, bi-monthly average?
 
Thanks for your help


	[[alternative HTML version deleted]]

