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 2021
#>   .. ..$ period                 : chr "3Q"
#>   .. ..$ gro_dom_pro            : chr "-4.482819660186"
#>   .. ..$ fin_com_exp_tot        : chr "-2.171767675922"
#>   .. ..$ fin_com_exp_pri_sec    : chr "-4.243215824426"
#>   .. ..$ fin_com_exp_pub_sec    : chr "8.050013341689"
#>   .. ..$ gro_fix_cap_inf_tot    : chr "-10.762659288184"
#>   .. ..$ gro_fix_cap_inf_pri_sec: chr "-4.800000000000"
#>   .. ..$ gro_fix_cap_inf_pub_sec: chr "-28.880000000000"
#>   .. ..$ exp_of_goo_and_ser     : chr "5.089913626463"
#>   .. ..$ imp_of_goo_and_ser     : chr "11.739895963164"

# 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"
#>