在RI中,经常zoo按月汇总每日数据(a ),使用以下内容:
zoo
result <- aggregate(x, as.yearmon, "mean", na.rm=TRUE)
我有办法在一周之内完成这项工作吗?
aggregate r zoo
aggregate ×1
r ×1
zoo ×1