import.ts | R Documentation |
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()
.
import.ts(
file,
format = "datevalue",
start = NULL,
frequency = NULL,
name = NULL
)
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: |
start |
vector of length 2, time of the first observation (only for
formats |
frequency |
the number of observations per unit of time (only for
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. |
an object of class ts
or mts
import.spc()
, for importing X-13 .spc
files.
seas()
for the main function of seasonal.
tdir <- tempdir()
seas(x = AirPassengers, dir = tdir)
import.ts(file.path(tdir, "iofile.dta"))
import.ts(file.path(tdir, "iofile.rsd"), format = "x13save")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.