Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_name

Get the Java name of a multiprocessing or a sa_item


Description

Generics functions to get the Java name of a multiprocessing or a sa_item.

Usage

get_name(x)

Arguments

x

the object to get the name from.

Value

A character.

See Also

Other functions to get informations 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, "sa1")
add_sa_item(wk, "sa1", sa_x13, "X13")
add_sa_item(wk, "sa1", 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 "sa1"

# To get all the name of the sa_items inside a multiprocessing:
sapply(get_all_objects(mp), get_name)

# To get all the name of the multiprocessings inside a workspace:
sapply(get_all_objects(wk), get_name)

# To get all the name of the sa_items inside a workspace:
lapply(get_all_objects(wk),function(mp){
  sapply(get_all_objects(mp), get_name)
})

RJDemetra

Interface to 'JDemetra+' Seasonal Adjustment Software

v0.1.6
EUPL
Authors
Alain Quartier-la-Tente [aut, cre] (<https://orcid.org/0000-0001-7890-3857>), Anna Michalek [aut], Jean Palate [aut], Raf Baeyens [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.