Non-overlapping temporal aggregation of a time series according to a specific aggregation order.
agg_ts(agg_order, x, align = "end", rm_na = FALSE)Aggregation order to consider.
Univariate time series: a vector or a ts object.
Specifies whether the aggregates should be aligned with the start () or end of the series.
logical. Should missing values be removed?
A vector or ts object
Other utilities:
Cmatrix(),
FoReco2ts(),
arrange_hres(),
commat(),
ctf_tools(),
hts_tools(),
lcmat(),
oct_bounds(),
residuals_matrix(),
score_index(),
shrink_estim(),
thf_tools()
data(FoReco_data)
annual_ts <- agg_ts(12, FoReco_data$obs$k1[,1]) # == FoReco_data$obs$k12[,1]