View source: R/bimets_ts_functions.R
QUARTERLY | R Documentation |
This function returns a quarterly (dis)aggregated time series, using as input an annual, semiannual, monthly or daily time series.
QUARTERLY(x = NULL, fun = NULL, avoidCompliance = FALSE, ...)
x |
Input time series that must satisfy the compliance control check defined in |
fun |
Only for daily or monthly input time series: |
avoidCompliance |
If |
... |
Backward compatibility. |
This function returns a quarterly BIMETS time series.
YEARLY
SEMIANNUAL
MONTHLY
DAILY
#TS YEARLY TO QUARTERLY
n<-10
ts1<-TSERIES(1:n,START=c(2000,1),FREQ=1)
ts1[5]<-NA
TABIT(QUARTERLY(ts1,fun='INTERP_CENTER'));
#TS DAILY TO QUARTERLY
n<-600
ts1<-TSERIES(1:n,START=c(2000,1),FREQ='D')
ts1[25]<-NA
TABIT(QUARTERLY(ts1,fun='SUM'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.