View source: R/import_workspace.R
get_name | R Documentation |
Generic functions to retrieve the Java name of a multiprocessing
or a sa_item
.
get_name(x)
x |
the object to retrieve the name from. |
A character
.
Other functions to retrieve information from a workspace, multiprocessing or sa_item: count
, get_model
, get_ts
.
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)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.