Calling Functions in the R Language


Time Series Data

In SAS, the sampling times for time series data are often stored in a separate variable. In R, the sampling times for a time series object are specified by the tsp attribute. When a time series object in R is transferred to SAS software, the following occurs:

  • The R time function is used to generate a vector of the times at which the time series is sampled.

  • A new variable named VarName_ts is created, where VarName is the name of the time series object in R. The variable contains sampling times for the time series.

No special processing of time series data is performed when data are transferred from SAS to R software.