Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

import.ts

Import Time Series from X-13 Data Files


Description

Utility function to read time series from X-13 data files. A call to import.ts is constructed and included in the output of import.spc().

Usage

import.ts(
  file,
  format = "datevalue",
  start = NULL,
  frequency = NULL,
  name = NULL
)

Arguments

file

character, name of the X-13 file which the data are to be read from

format

a valid X-13 file format as described in 7.15 of the X-13 manual: "datevalue", "datevaluecomma", "free", "freecomma", "x13save", "tramo" or an X-11 or Fortran format.

start

vector of length 2, time of the first observation (only for formats "free" and "freecomma" and the Fortran formats.)

frequency

the number of observations per unit of time (only for formats "free", "freecomma" and the X-11 or Fortran formats.)

name

(X-11 formats only) name of the series, to select from a file with multiple time series. Omit if you want to read all time series from an X-11 format file.

Value

an object of class ts or mts

See Also

import.spc(), for importing X-13 .spc files.

seas() for the main function of seasonal.

Examples

tdir <- tempdir()
seas(x = AirPassengers, dir = tdir)
import.ts(file.path(tdir, "iofile.dta"))
import.ts(file.path(tdir, "iofile.rsd"), format = "x13save")

seasonal

R Interface to X-13-ARIMA-SEATS

v1.8.2
GPL-3
Authors
Christoph Sax [aut, cre] (<https://orcid.org/0000-0002-7192-7044>), Dirk Eddelbuettel [ctb] (<https://orcid.org/0000-0001-6419-907X>)
Initial release
2021-03-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.