ANNUAL {bimets} | R Documentation |
Annual Time Series (Dis)Aggregation
Description
This function returns a yearly aggregated time series, by using as input a semiannual, quarterly, monthly or daily time series.
Usage
ANNUAL(x = NULL, fun = NULL, avoidCompliance = FALSE, ...)
YEARLY(x = NULL, fun = NULL, avoidCompliance = FALSE, ...)
Arguments
x |
Input time series, that must satisfy the compliance control check defined in |
fun |
STOCK: the output value of a year is equal to the value of the input time series in the last period of the same year |
avoidCompliance |
If |
... |
Backward compatibility. |
Value
This function returns a yearly BIMETS time series.
See Also
SEMIANNUAL
QUARTERLY
MONTHLY
DAILY
Examples
#TS DAILY TO ANNUAL
n<-366
ts1<-TIMESERIES(0:n,START=c(2000,1),FREQ='D')
ts1[10]<-NA
TABIT(ANNUAL(ts1,fun='NAVE'))
#TS DAILY TO ANNUAL
n<-36
ts1<-TIMESERIES(0:n,START=c(2000,1),FREQ='M')
ts1[10]<-NA
TABIT(YEARLY(ts1,fun='SUM'))