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()
#> Error in get_aggregate_output(): could not find function "get_aggregate_output"

# result is a nested list
str(res)
#> Error in str(res): object 'res' not found

# to get change at 2000 prices run the following: 
res$change$base_2000 
#> Error in eval(expr, envir, enclos): object 'res' not found