I've checked a few questions on time series aggregation, but haven't found what I was looking for.
I have a zoo
object of weekly data over 10 years, and I've calculated the monthly rolling mean of this series. I want to work with monthly data that corresponds to this, and to that end pull the last weekly data point for each month, as representative for the whole month, into a separate time series.
I've tried the aggregate
ts function but am having trouble since the spacing is not even (i.e. 4 weeks not always a month, etc).
r
tag. – Stephan Kolassa