get_series.RdExtracts all available time series (pre-adjustment, decomposition, and final)
from a seasonal adjustment item (jsai) inside a Demetra+ workspace.
get_series(jsai)A Java Seasonal Adjustment Item object, typically obtained via
rjd3workspace::jsap_sai() after opening and computing a workspace with rjd3workspace::jws_open()
and rjd3workspace::jws_compute().
A data.frame with columns:
SAI: name of the SAI,
series: the type of series (e.g. "y", "sa", "trend"),
date: observation dates,
value: numeric values of the series.
if (FALSE) { # \dontrun{
library("rjd3workspace")
path <- file.path(tempdir(), "workspace_RSA3.xml")
jws <- jws_open(path)
jws_compute(jws)
jsap <- jws_sap(jws, 1L)
jsai <- jsap_sai(jsap, 1L)
df <- get_series(jsai)
head(df)
} # }