View source: R/bimets_ts_functions.R
ANNUAL | R Documentation |
This function returns a yearly aggregated time series, by using as input a semiannual, quarterly, monthly or daily time series.
ANNUAL(x = NULL, fun = NULL, avoidCompliance = FALSE, ...)
YEARLY(x = NULL, fun = NULL, avoidCompliance = FALSE, ...)
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. |
This function returns a yearly BIMETS time series.
SEMIANNUAL
QUARTERLY
MONTHLY
DAILY
#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'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.