Skip to content
Prev 177219 / 398503 Next

From daily series to monthly and viceversa

You can remove missing values with:

zm <- aggregate(cambio, as.yearmon, mean, na.rm = TRUE)

Its not clear what your second question is asking.  If you
want the series to have a Date class rather than yearmon class
with the 1st of the month then:

zd <- zm
time(zd) <- as.Date(time(zm))

or

zd <- aggregate(zm, as.Date, force)
On Wed, Apr 15, 2009 at 5:28 PM, manta <mantino84 at libero.it> wrote: