Skip to content
Prev 177501 / 398503 Next

From daily series to monthly and viceversa

Well Gabor, this is actually a really good help, thanks so much.
There is only one problem, I'm getting what you say, but in the code there
are a couple of errors

time(z2) <- as.Date(time(zz)) #probably z2
z3 <- na.locf(
		cbind(zz,
			zoo(, dd), #dd object not found
			day.of.month = as.numeric(format(time(zz), "%d"))
))
z3$day.of.month <- as.numeric(format(time(zz2), "%d")) #z2?

And why did you call partial this solution?
Thanks again for you great help
Take care
Gabor Grothendieck wrote: