Skip to contents

Returns a tibble of available series (economic indicators) in the WEO database.

Usage

weo_list_series(pattern = NULL)

Arguments

pattern

Optional character string to filter series by name or code

Value

A tibble with columns:

series_code

The WEO subject code (e.g., "NGDP_RPCH")

series_name

Full name of the series (e.g., "Gross domestic product, constant prices")

units

Units of measurement

Examples

# List all series
weo_list_series()
#> # A tibble: 44 × 3
#>    series_code series_name                                      units           
#>    <chr>       <chr>                                            <chr>           
#>  1 BCA         Current account balance                          U.S. dollars    
#>  2 BCA_NGDPD   Current account balance                          Percent of GDP  
#>  3 GGR         General government revenue                       National curren…
#>  4 GGR_NGDP    General government revenue                       Percent of GDP  
#>  5 GGSB        General government structural balance            National curren…
#>  6 GGSB_NPGDP  General government structural balance            Percent of pote…
#>  7 GGX         General government total expenditure             National curren…
#>  8 GGXCNL      General government net lending/borrowing         National curren…
#>  9 GGXCNL_NGDP General government net lending/borrowing         Percent of GDP  
#> 10 GGXONLB     General government primary net lending/borrowing National curren…
#> # ℹ 34 more rows

# Search for GDP-related series
weo_list_series("gdp")
#> # A tibble: 22 × 3
#>    series_code  series_name                                      units          
#>    <chr>        <chr>                                            <chr>          
#>  1 BCA_NGDPD    Current account balance                          Percent of GDP 
#>  2 GGR_NGDP     General government revenue                       Percent of GDP 
#>  3 GGSB_NPGDP   General government structural balance            Percent of pot…
#>  4 GGXCNL_NGDP  General government net lending/borrowing         Percent of GDP 
#>  5 GGXONLB_NGDP General government primary net lending/borrowing Percent of GDP 
#>  6 GGXWDG_NGDP  General government gross debt                    Percent of GDP 
#>  7 GGXWDN_NGDP  General government net debt                      Percent of GDP 
#>  8 GGX_NGDP     General government total expenditure             Percent of GDP 
#>  9 NGAP_NPGDP   Output gap in percent of potential GDP           Percent of pot…
#> 10 NGDP         Gross domestic product, current prices           National curre…
#> # ℹ 12 more rows