View source: R/bimets_ts_functions.R
TSLOOK | R Documentation |
This function returns the time range and the frequency of an input time series.
TSLOOK(x=NULL, avoidCompliance=FALSE, ...)
x |
Input time series that must satisfy the compliance control check defined in |
avoidCompliance |
If |
... |
Backward compatibility. |
This function returns a list of numeric arrays built with the following elements:
STARTY
will contain the value of the starting year
STARTP
will contain the value of the starting period
ENDY
will contain the value of the ending year
ENDP
will contain the value of the ending period
FREQ
will contain the value of the time series frequency
NOELS
is.bimets
BIMETS indexing
fromBIMETStoXTS
fromBIMETStoTS
GETYEARPERIOD
INTS
TSINFO
#create series
ts1<-TSERIES(INTS(1,10),START=c(2000,1),FREQ=12)
ts1Look<-TSLOOK(ts1)
print(ts1Look$STARTY) #print...2000
print(ts1Look$STARTP) #print...1
print(ts1Look$ENDY) #print...2000
print(ts1Look$ENDP) #print...10
print(ts1Look$FREQ) #print...12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.