Skip to contents

External sector and macroeconomic indicators: aggregate output

Usage

get_aggregate_output(year = NULL, metric = "gdp", output_by = "expenditure")

Arguments

year

Scalar integer

metric

One of "gdp", "gni"

output_by

One of "expenditure", "activity"

Value

nested list with "amt" and "change". Different base rates are nested within.

Examples

# we retrieve GDP by expenditure by default 
res <- get_aggregate_output()
#> GDP by expenditure

# result is a nested list
str(res)
#> List of 1
#>  $ change:List of 2
#>   ..$ base_2000:List of 12
#>   .. ..$ year_dt                    : int 2010
#>   .. ..$ month_dt                   : NULL
#>   .. ..$ period                     : chr "4Q"
#>   .. ..$ gro_dom_pro_gdp            : chr "4.981061060101170"
#>   .. ..$ fin_gro_dom_pro_gdp_tot    : chr "5.794039772407180"
#>   .. ..$ fin_gro_dom_pro_gdp_pri_sec: chr "6.683310448133820"
#>   .. ..$ fin_gro_dom_pro_gdp_pub_sec: chr "3.098954387028340"
#>   .. ..$ gro_fix_cap_for_tot        : chr "12.973059653624100"
#>   .. ..$ gro_fix_cap_for_pri_sec    : chr "-11.000000000000000"
#>   .. ..$ gro_fix_cap_for_pub_sec    : chr "37.200000000000000"
#>   .. ..$ exp_of_goo_and_ser         : chr "2.352699047395030"
#>   .. ..$ imp_of_goo_and_ser         : chr "4.316287298832980"
#>   ..$ base_2010:List of 11
#>   .. ..$ year_dt                : int 2022
#>   .. ..$ period                 : chr "4Q"
#>   .. ..$ gro_dom_pro            : chr "6.970819544009"
#>   .. ..$ fin_com_exp_tot        : chr "6.343072534741"
#>   .. ..$ fin_com_exp_pri_sec    : chr "7.393198037543"
#>   .. ..$ fin_com_exp_pub_sec    : chr "2.449629293698"
#>   .. ..$ gro_fix_cap_inf_tot    : chr "8.809724086764"
#>   .. ..$ gro_fix_cap_inf_pri_sec: chr "10.269000000000"
#>   .. ..$ gro_fix_cap_inf_pub_sec: chr "5.953000000000"
#>   .. ..$ exp_of_goo_and_ser     : chr "9.579989211226"
#>   .. ..$ imp_of_goo_and_ser     : chr "8.065088420630"

# to get change at 2000 prices run the following: 
res$change$base_2000 
#> $year_dt
#> [1] 2010
#> 
#> $month_dt
#> NULL
#> 
#> $period
#> [1] "4Q"
#> 
#> $gro_dom_pro_gdp
#> [1] "4.981061060101170"
#> 
#> $fin_gro_dom_pro_gdp_tot
#> [1] "5.794039772407180"
#> 
#> $fin_gro_dom_pro_gdp_pri_sec
#> [1] "6.683310448133820"
#> 
#> $fin_gro_dom_pro_gdp_pub_sec
#> [1] "3.098954387028340"
#> 
#> $gro_fix_cap_for_tot
#> [1] "12.973059653624100"
#> 
#> $gro_fix_cap_for_pri_sec
#> [1] "-11.000000000000000"
#> 
#> $gro_fix_cap_for_pub_sec
#> [1] "37.200000000000000"
#> 
#> $exp_of_goo_and_ser
#> [1] "2.352699047395030"
#> 
#> $imp_of_goo_and_ser
#> [1] "4.316287298832980"
#>