Skip to contents

Searches a workspace for a seasonal adjustment item (SAI) whose name matches the user-supplied string and returns the corresponding object.

Usage

get_jsai_by_name(jws, series_name)

Arguments

jws

A Java Workspace object, as returned by rjd3workspace::jws_open() or rjd3workspace::jws_new().

series_name

character Name of the SAI to retrieve.

Value

A Java Seasonal Adjustment Item object (jsai).

Examples

if (FALSE) { # \dontrun{
path <- file.path(tempdir(), "workspace_RSA3.xml")
jws <- jws_open(path)
jws_compute(jws)

jsai <- get_jsai_by_name(jws, "series_1")
df <- get_series(jsai)
head(df)
} # }