View source: R/bimets_ts_functions.R
INDEXNUM | R Documentation |
This function rebases an input time series to the value of 100 in the year selected by the BASEYEAR
argument. If the input time series frequency is greater than one, the initial reference is set to the average value of the input time series observations that lie in the BASEYEAR
.
INDEXNUM(x=NULL, BASEYEAR=NULL, avoidCompliance=FALSE, ...)
x |
Input time series that must satisfy the compliance control check defined in |
BASEYEAR |
Rebasing year. |
avoidCompliance |
If |
... |
Backward compatibility. |
This function returns a BIMETS time series.
TSJOIN
TSEXTEND
TSMERGE
MOVAVG
GETYEARPERIOD
CUMSUM
#create yearly ts
n<-20
ts1<-TSERIES(1:n,START=c(2000,1),FREQ=1)
TABIT(ts1, INDEXNUM(ts1,2005))
#quarterly
ts1<-TSERIES(1:n,START=c(2000,1),FREQ=4)
ts1[5]<-NA
TABIT(ts1, INDEXNUM(ts1,2000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.