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

add_sa_item

Add a seasonally adjust model to a multi-processing


Description

Function to add a new seasonally adjust object (class "SA" or "jSA") in a workspace object.

Usage

add_sa_item(workspace, multiprocessing, sa_obj, name)

Arguments

workspace

the workspace to add the seasonally adjust model.

multiprocessing

the name or index of the multiprocessing to add the seasonally adjust model.

sa_obj

the seasonally adjust object to export.

name

the name of the seasonally adjust model in the multiprocessing. By default the name of the sa_obj is used.

See Also

Examples

dir <- tempdir()
spec_x13 <- x13_spec(spec = "RSA5c", easter.enabled = FALSE)
sa_x13 <- x13(ipi_c_eu[, "FR"], spec = spec_x13)
spec_ts <- tramoseats_spec(spec = "RSA5")
sa_ts <- jtramoseats(ipi_c_eu[, "FR"], spec = spec_ts)

wk <- new_workspace()
new_multiprocessing(wk, "sa1")
add_sa_item(wk, "sa1", sa_x13, "X13")
add_sa_item(wk, "sa1", sa_ts, "TramoSeats")

save_workspace(wk, file.path(dir, "workspace.xml"))

RJDemetra

Interface to 'JDemetra+' Seasonal Adjustment Software

v0.1.6
EUPL
Authors
Alain Quartier-la-Tente [aut, cre] (<https://orcid.org/0000-0001-7890-3857>), Anna Michalek [aut], Jean Palate [aut], Raf Baeyens [aut]
Initial release

We don't support your browser anymore

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