Skip to contents

Functions to retrieve the name of a SAProcessing (sap_name()) or SaItem (sai_name()).

This function is used to retrieve the Java names of all the SA-items contained in a SA-Processing.

Usage

sap_name(jsap)

sap_sai_names(jsap)

Arguments

jsap, jsai

the object to retrieve the name from.

jsap

the java object representing the SA-Processing

Value

A vector character.

See also

Other functions to retrieve the name of JDemetra+ objects (workspace, SA-Processing or SA-item): sai_name, sap_name.

Examples

# \donttest{

y <- rjd3toolkit::ABS$X0.2.09.10.M

jws <- jws_new()
jsap1 <- jws_sap_new(jws, "sap1")

add_sa_item(jsap1, name = "x13", x = rjd3x13::x13(y))
add_sa_item(jsap1, name = "tramo", x = rjd3tramoseats::tramoseats(y))
add_sa_item(jsap1, name = "x13-2", x = y, rjd3x13::x13_spec())
add_sa_item(jsap1, name = "tramo-2", x = y, rjd3tramoseats::tramoseats_spec())

print(sap_sai_names(jsap1))
#> [1] "x13"     "tramo"   "x13-2"   "tramo-2"
# }