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

get_ts

Get the input raw time series


Description

Generics functions to get the input raw time series of a workspace, multiprocessing, sa_item or SA object.

Usage

get_ts(x)

Arguments

x

the object where to get the time series.

Value

get_ts() returns a ts object or list of ts objects:

  • if x is a sa_item or a SA object, get_ts(x) returns a single ts object;

  • if x is a multiprocessing object, get_ts(x) returns list of length the number of sa_items, each a ts object;

  • if x is a workspace object, get_ts(x) returns list of length the number of multiprocessing, each element containing a list of ts object.

See Also

Other functions to get informations from a workspace, multiprocessing or sa_item: count, get_model, get_name.

Examples

sa_x13 <- x13(ipi_c_eu[, "FR"], spec = "RSA5c")

wk <- new_workspace()
mp <- new_multiprocessing(wk, "sa1")
add_sa_item(wk, "sa1", sa_x13, "X13")
sa_item <- get_object(mp, 1)

  # Extracting from a SA:
get_ts(sa_x13) # Returns the ts object ipi_c_eu[, "FR"]

  # Extracting from a sa_item:
get_ts(sa_item) # Returns the ts object ipi_c_eu[, "FR"]

  # Extracting from a multiprocessing:
# Returns a list of length 1 named "X13" containing the ts object ipi_c_eu[, "FR"]:
get_ts(mp)


  # Extracting from a workspace:
# Returns a list of length 1 named "sa1" containing a list
# of length 1 named "X13" containing the ts object ipi_c_eu[, "FR"]
get_ts(wk)

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.