Generic functions to retrieve the input raw time series of a workspace
, multiprocessing
,
sa_item
or SA
object.
Value
get_ts()
returns a ts
object or list of ts
objects:
if
x
is asa_item
or aSA
object,get_ts(x)
returns a singlets
object;if
x
is amultiprocessing
object,get_ts(x)
returns a list of length the number of sa_items, each element being ats
object;if
x
is aworkspace
object,get_ts(x)
returns a list of length the number of multiprocessings, each element being a list ofts
objects.
Examples
# \donttest{
sa_x13 <- x13(ipi_c_eu[, "FR"], spec = "RSA5c")
wk <- new_workspace()
mp <- new_multiprocessing(wk, "sap1")
add_sa_item(wk, "sap1", sa_x13, "X13")
sa_item <- get_object(mp, 1)
# Extracting the raw time series from an adjusted series:
get_ts(sa_x13) # Returns the ts object ipi_c_eu[, "FR"]
#> Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
#> 1990 92.1 92.3 102.1 93.0 93.3 100.8 92.9 66.7 95.8 105.0 96.7 89.2
#> 1991 92.5 89.2 97.4 93.8 87.5 100.3 93.4 64.3 96.9 103.5 94.0 92.1
#> 1992 90.7 89.0 99.4 93.7 86.1 101.3 90.4 62.9 96.6 98.4 91.9 92.6
#> 1993 82.3 84.0 95.6 88.3 82.2 97.9 85.5 61.3 93.7 93.0 88.3 92.1
#> 1994 83.6 83.7 97.0 88.3 88.3 102.9 87.3 65.9 98.2 98.0 96.8 98.0
#> 1995 91.8 90.1 102.9 90.4 91.6 103.7 90.6 66.8 98.7 101.4 97.2 94.8
#> 1996 92.0 91.1 98.1 94.3 90.5 101.8 96.1 66.3 98.9 105.0 95.0 96.0
#> 1997 91.9 91.3 99.1 102.8 93.2 108.2 100.4 70.5 107.3 114.1 99.6 106.7
#> 1998 98.2 98.7 109.3 103.7 97.6 114.7 106.1 72.1 111.5 112.6 105.6 107.4
#> 1999 97.2 98.3 114.5 104.8 99.9 120.2 105.7 76.1 115.2 115.1 111.1 114.0
#> 2000 103.4 107.5 121.7 105.7 113.1 119.4 108.1 82.0 116.4 121.3 117.2 111.9
#> 2001 110.7 108.9 124.0 109.3 109.8 121.9 112.4 85.5 114.1 123.4 114.2 104.9
#> 2002 108.4 106.7 118.5 113.4 105.6 119.2 113.9 81.4 115.6 121.7 111.0 105.2
#> 2003 106.9 105.4 117.1 112.0 101.5 115.2 111.2 75.7 117.5 122.4 107.8 109.3
#> 2004 104.7 106.7 122.8 112.7 104.5 126.5 111.1 79.7 121.9 118.8 112.2 112.6
#> 2005 107.6 106.3 118.8 113.7 109.7 125.0 106.4 81.7 123.0 115.1 115.5 111.6
#> 2006 108.8 105.9 124.8 108.0 113.1 126.7 108.7 84.1 121.0 121.5 116.6 108.2
#> 2007 111.5 109.6 124.0 111.7 111.7 126.6 116.6 87.1 117.3 127.2 118.0 106.5
#> 2008 113.2 114.4 117.5 120.2 107.6 121.4 115.1 78.8 118.9 118.8 99.5 99.2
#> 2009 90.7 90.1 100.0 93.9 88.3 105.5 97.9 70.3 106.5 104.7 99.0 95.2
#> 2010 90.3 93.1 109.5 100.4 95.5 111.8 100.8 74.5 109.0 105.0 102.7 101.9
#> 2011 99.0 101.6 115.3 101.6 110.1 108.5 101.0 78.3 110.0 106.4 106.3 100.2
#> 2012 99.3 99.9 110.3 99.8 96.1 108.5 103.8 78.8 102.9 107.6 101.9 91.5
#> 2013 96.3 95.7 103.9 103.4 96.2 105.5 105.2 73.4 103.3 109.3 99.0 94.6
#> 2014 96.8 97.1 104.9 102.9 92.4 104.8 103.3 71.5 107.2 107.7 95.5 98.4
#> 2015 94.6 96.1 108.4 102.4 91.0 111.8 101.1 76.1 109.1 107.7 101.8 99.9
#> 2016 95.1 99.6 108.3 103.3 98.6 110.3 95.8 79.7 107.9 103.4 104.7 99.7
#> 2017 98.9 97.1 114.5 98.0 102.7 111.4 99.5 81.4 108.2 113.2 111.0 99.5
#> 2018 101.8 98.6 112.9 103.0 98.7 112.8 106.6 82.6 104.7 116.0 109.6 97.6
#> 2019 103.8 102.0 111.6 107.2 105.2 106.0 109.8 78.8 109.0 116.5 104.0 97.8
#> 2020 101.0 100.1 91.8 66.7 73.7 98.2 97.4 71.7 104.7 106.7 101.6 96.6
# Extracting the raw time series from a sa_item:
get_ts(sa_item) # Returns the ts object ipi_c_eu[, "FR"]
#> Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
#> 1990 92.1 92.3 102.1 93.0 93.3 100.8 92.9 66.7 95.8 105.0 96.7 89.2
#> 1991 92.5 89.2 97.4 93.8 87.5 100.3 93.4 64.3 96.9 103.5 94.0 92.1
#> 1992 90.7 89.0 99.4 93.7 86.1 101.3 90.4 62.9 96.6 98.4 91.9 92.6
#> 1993 82.3 84.0 95.6 88.3 82.2 97.9 85.5 61.3 93.7 93.0 88.3 92.1
#> 1994 83.6 83.7 97.0 88.3 88.3 102.9 87.3 65.9 98.2 98.0 96.8 98.0
#> 1995 91.8 90.1 102.9 90.4 91.6 103.7 90.6 66.8 98.7 101.4 97.2 94.8
#> 1996 92.0 91.1 98.1 94.3 90.5 101.8 96.1 66.3 98.9 105.0 95.0 96.0
#> 1997 91.9 91.3 99.1 102.8 93.2 108.2 100.4 70.5 107.3 114.1 99.6 106.7
#> 1998 98.2 98.7 109.3 103.7 97.6 114.7 106.1 72.1 111.5 112.6 105.6 107.4
#> 1999 97.2 98.3 114.5 104.8 99.9 120.2 105.7 76.1 115.2 115.1 111.1 114.0
#> 2000 103.4 107.5 121.7 105.7 113.1 119.4 108.1 82.0 116.4 121.3 117.2 111.9
#> 2001 110.7 108.9 124.0 109.3 109.8 121.9 112.4 85.5 114.1 123.4 114.2 104.9
#> 2002 108.4 106.7 118.5 113.4 105.6 119.2 113.9 81.4 115.6 121.7 111.0 105.2
#> 2003 106.9 105.4 117.1 112.0 101.5 115.2 111.2 75.7 117.5 122.4 107.8 109.3
#> 2004 104.7 106.7 122.8 112.7 104.5 126.5 111.1 79.7 121.9 118.8 112.2 112.6
#> 2005 107.6 106.3 118.8 113.7 109.7 125.0 106.4 81.7 123.0 115.1 115.5 111.6
#> 2006 108.8 105.9 124.8 108.0 113.1 126.7 108.7 84.1 121.0 121.5 116.6 108.2
#> 2007 111.5 109.6 124.0 111.7 111.7 126.6 116.6 87.1 117.3 127.2 118.0 106.5
#> 2008 113.2 114.4 117.5 120.2 107.6 121.4 115.1 78.8 118.9 118.8 99.5 99.2
#> 2009 90.7 90.1 100.0 93.9 88.3 105.5 97.9 70.3 106.5 104.7 99.0 95.2
#> 2010 90.3 93.1 109.5 100.4 95.5 111.8 100.8 74.5 109.0 105.0 102.7 101.9
#> 2011 99.0 101.6 115.3 101.6 110.1 108.5 101.0 78.3 110.0 106.4 106.3 100.2
#> 2012 99.3 99.9 110.3 99.8 96.1 108.5 103.8 78.8 102.9 107.6 101.9 91.5
#> 2013 96.3 95.7 103.9 103.4 96.2 105.5 105.2 73.4 103.3 109.3 99.0 94.6
#> 2014 96.8 97.1 104.9 102.9 92.4 104.8 103.3 71.5 107.2 107.7 95.5 98.4
#> 2015 94.6 96.1 108.4 102.4 91.0 111.8 101.1 76.1 109.1 107.7 101.8 99.9
#> 2016 95.1 99.6 108.3 103.3 98.6 110.3 95.8 79.7 107.9 103.4 104.7 99.7
#> 2017 98.9 97.1 114.5 98.0 102.7 111.4 99.5 81.4 108.2 113.2 111.0 99.5
#> 2018 101.8 98.6 112.9 103.0 98.7 112.8 106.6 82.6 104.7 116.0 109.6 97.6
#> 2019 103.8 102.0 111.6 107.2 105.2 106.0 109.8 78.8 109.0 116.5 104.0 97.8
#> 2020 101.0 100.1 91.8 66.7 73.7 98.2 97.4 71.7 104.7 106.7 101.6 96.6
# Extracting all raw time series from a multiprocessing:
# Returns a list of length 1 named "X13" containing the ts object ipi_c_eu[, "FR"]:
get_ts(mp)
#> $X13
#> Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
#> 1990 92.1 92.3 102.1 93.0 93.3 100.8 92.9 66.7 95.8 105.0 96.7 89.2
#> 1991 92.5 89.2 97.4 93.8 87.5 100.3 93.4 64.3 96.9 103.5 94.0 92.1
#> 1992 90.7 89.0 99.4 93.7 86.1 101.3 90.4 62.9 96.6 98.4 91.9 92.6
#> 1993 82.3 84.0 95.6 88.3 82.2 97.9 85.5 61.3 93.7 93.0 88.3 92.1
#> 1994 83.6 83.7 97.0 88.3 88.3 102.9 87.3 65.9 98.2 98.0 96.8 98.0
#> 1995 91.8 90.1 102.9 90.4 91.6 103.7 90.6 66.8 98.7 101.4 97.2 94.8
#> 1996 92.0 91.1 98.1 94.3 90.5 101.8 96.1 66.3 98.9 105.0 95.0 96.0
#> 1997 91.9 91.3 99.1 102.8 93.2 108.2 100.4 70.5 107.3 114.1 99.6 106.7
#> 1998 98.2 98.7 109.3 103.7 97.6 114.7 106.1 72.1 111.5 112.6 105.6 107.4
#> 1999 97.2 98.3 114.5 104.8 99.9 120.2 105.7 76.1 115.2 115.1 111.1 114.0
#> 2000 103.4 107.5 121.7 105.7 113.1 119.4 108.1 82.0 116.4 121.3 117.2 111.9
#> 2001 110.7 108.9 124.0 109.3 109.8 121.9 112.4 85.5 114.1 123.4 114.2 104.9
#> 2002 108.4 106.7 118.5 113.4 105.6 119.2 113.9 81.4 115.6 121.7 111.0 105.2
#> 2003 106.9 105.4 117.1 112.0 101.5 115.2 111.2 75.7 117.5 122.4 107.8 109.3
#> 2004 104.7 106.7 122.8 112.7 104.5 126.5 111.1 79.7 121.9 118.8 112.2 112.6
#> 2005 107.6 106.3 118.8 113.7 109.7 125.0 106.4 81.7 123.0 115.1 115.5 111.6
#> 2006 108.8 105.9 124.8 108.0 113.1 126.7 108.7 84.1 121.0 121.5 116.6 108.2
#> 2007 111.5 109.6 124.0 111.7 111.7 126.6 116.6 87.1 117.3 127.2 118.0 106.5
#> 2008 113.2 114.4 117.5 120.2 107.6 121.4 115.1 78.8 118.9 118.8 99.5 99.2
#> 2009 90.7 90.1 100.0 93.9 88.3 105.5 97.9 70.3 106.5 104.7 99.0 95.2
#> 2010 90.3 93.1 109.5 100.4 95.5 111.8 100.8 74.5 109.0 105.0 102.7 101.9
#> 2011 99.0 101.6 115.3 101.6 110.1 108.5 101.0 78.3 110.0 106.4 106.3 100.2
#> 2012 99.3 99.9 110.3 99.8 96.1 108.5 103.8 78.8 102.9 107.6 101.9 91.5
#> 2013 96.3 95.7 103.9 103.4 96.2 105.5 105.2 73.4 103.3 109.3 99.0 94.6
#> 2014 96.8 97.1 104.9 102.9 92.4 104.8 103.3 71.5 107.2 107.7 95.5 98.4
#> 2015 94.6 96.1 108.4 102.4 91.0 111.8 101.1 76.1 109.1 107.7 101.8 99.9
#> 2016 95.1 99.6 108.3 103.3 98.6 110.3 95.8 79.7 107.9 103.4 104.7 99.7
#> 2017 98.9 97.1 114.5 98.0 102.7 111.4 99.5 81.4 108.2 113.2 111.0 99.5
#> 2018 101.8 98.6 112.9 103.0 98.7 112.8 106.6 82.6 104.7 116.0 109.6 97.6
#> 2019 103.8 102.0 111.6 107.2 105.2 106.0 109.8 78.8 109.0 116.5 104.0 97.8
#> 2020 101.0 100.1 91.8 66.7 73.7 98.2 97.4 71.7 104.7 106.7 101.6 96.6
#>
# Extracting all raw time series from a workspace:
# Returns a list of length 1 named "sap1" containing a list
# of length 1 named "X13", containing the ts object ipi_c_eu[, "FR"]
get_ts(wk)
#> $sap1
#> $sap1$X13
#> Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
#> 1990 92.1 92.3 102.1 93.0 93.3 100.8 92.9 66.7 95.8 105.0 96.7 89.2
#> 1991 92.5 89.2 97.4 93.8 87.5 100.3 93.4 64.3 96.9 103.5 94.0 92.1
#> 1992 90.7 89.0 99.4 93.7 86.1 101.3 90.4 62.9 96.6 98.4 91.9 92.6
#> 1993 82.3 84.0 95.6 88.3 82.2 97.9 85.5 61.3 93.7 93.0 88.3 92.1
#> 1994 83.6 83.7 97.0 88.3 88.3 102.9 87.3 65.9 98.2 98.0 96.8 98.0
#> 1995 91.8 90.1 102.9 90.4 91.6 103.7 90.6 66.8 98.7 101.4 97.2 94.8
#> 1996 92.0 91.1 98.1 94.3 90.5 101.8 96.1 66.3 98.9 105.0 95.0 96.0
#> 1997 91.9 91.3 99.1 102.8 93.2 108.2 100.4 70.5 107.3 114.1 99.6 106.7
#> 1998 98.2 98.7 109.3 103.7 97.6 114.7 106.1 72.1 111.5 112.6 105.6 107.4
#> 1999 97.2 98.3 114.5 104.8 99.9 120.2 105.7 76.1 115.2 115.1 111.1 114.0
#> 2000 103.4 107.5 121.7 105.7 113.1 119.4 108.1 82.0 116.4 121.3 117.2 111.9
#> 2001 110.7 108.9 124.0 109.3 109.8 121.9 112.4 85.5 114.1 123.4 114.2 104.9
#> 2002 108.4 106.7 118.5 113.4 105.6 119.2 113.9 81.4 115.6 121.7 111.0 105.2
#> 2003 106.9 105.4 117.1 112.0 101.5 115.2 111.2 75.7 117.5 122.4 107.8 109.3
#> 2004 104.7 106.7 122.8 112.7 104.5 126.5 111.1 79.7 121.9 118.8 112.2 112.6
#> 2005 107.6 106.3 118.8 113.7 109.7 125.0 106.4 81.7 123.0 115.1 115.5 111.6
#> 2006 108.8 105.9 124.8 108.0 113.1 126.7 108.7 84.1 121.0 121.5 116.6 108.2
#> 2007 111.5 109.6 124.0 111.7 111.7 126.6 116.6 87.1 117.3 127.2 118.0 106.5
#> 2008 113.2 114.4 117.5 120.2 107.6 121.4 115.1 78.8 118.9 118.8 99.5 99.2
#> 2009 90.7 90.1 100.0 93.9 88.3 105.5 97.9 70.3 106.5 104.7 99.0 95.2
#> 2010 90.3 93.1 109.5 100.4 95.5 111.8 100.8 74.5 109.0 105.0 102.7 101.9
#> 2011 99.0 101.6 115.3 101.6 110.1 108.5 101.0 78.3 110.0 106.4 106.3 100.2
#> 2012 99.3 99.9 110.3 99.8 96.1 108.5 103.8 78.8 102.9 107.6 101.9 91.5
#> 2013 96.3 95.7 103.9 103.4 96.2 105.5 105.2 73.4 103.3 109.3 99.0 94.6
#> 2014 96.8 97.1 104.9 102.9 92.4 104.8 103.3 71.5 107.2 107.7 95.5 98.4
#> 2015 94.6 96.1 108.4 102.4 91.0 111.8 101.1 76.1 109.1 107.7 101.8 99.9
#> 2016 95.1 99.6 108.3 103.3 98.6 110.3 95.8 79.7 107.9 103.4 104.7 99.7
#> 2017 98.9 97.1 114.5 98.0 102.7 111.4 99.5 81.4 108.2 113.2 111.0 99.5
#> 2018 101.8 98.6 112.9 103.0 98.7 112.8 106.6 82.6 104.7 116.0 109.6 97.6
#> 2019 103.8 102.0 111.6 107.2 105.2 106.0 109.8 78.8 109.0 116.5 104.0 97.8
#> 2020 101.0 100.1 91.8 66.7 73.7 98.2 97.4 71.7 104.7 106.7 101.6 96.6
#>
#>
# }