get_name {RJDemetra} | R Documentation |
Get the Java name of a multiprocessing or a sa_item
Description
Generic functions to retrieve the Java name of a multiprocessing
or a sa_item
.
Usage
get_name(x)
Arguments
x |
the object to retrieve the name from. |
Value
A character
.
See Also
Other functions to retrieve information from a workspace, multiprocessing or sa_item: count
, get_model
, get_ts
.
Examples
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 <- tramoseats(ipi_c_eu[, "FR"], spec = spec_ts)
wk <- new_workspace()
mp <- new_multiprocessing(wk, "sap1")
add_sa_item(wk, "sap1", sa_x13, "X13")
add_sa_item(wk, "sap1", sa_ts, "TramoSeats")
sa_item1 <- get_object(mp, 1)
sa_item2 <- get_object(mp, 2)
get_name(sa_item1) # returns "X13"
get_name(sa_item2) # returns "TramoSeats"
get_name(mp) # returns "sap1"
# To retrieve the name of every sa_item in a given multiprocessing:
sapply(get_all_objects(mp), get_name)
# To retrieve the name of every multiprocessing in a given workspace:
sapply(get_all_objects(wk), get_name)
# To retrieve the name of every sa_item in a given workspace:
lapply(get_all_objects(wk),function(mp){
sapply(get_all_objects(mp), get_name)
})
[Package RJDemetra version 0.2.6 Index]