View source: R/bimets_ts_functions.R
SEMIANNUAL | R Documentation |
This function returns a semi-annual (dis)aggregated time series, by using as input an annual, quarterly, monthly or daily time series.
SEMIANNUAL(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 or quarterly input time series: |
avoidCompliance |
If |
... |
Backward compatibility. |
This function returns a semi-annual BIMETS time series.
ANNUAL
QUARTERLY
MONTHLY
DAILY
#TS QUARTERLY TO SEMIANNUAL
n<-14
xArr<-(n:0)
ts1<-TSERIES(xArr,START=c(2000,1),FREQ='Q')
print(SEMIANNUAL(ts1,fun='NAVE'))
#TS ANNUAL TO SEMIANNUAL
ts1<-TSERIES((1:10),START=c(2000,1),FREQ=1)
print(SEMIANNUAL(ts1,fun='INTERP_END'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.