One verb, many providers. Whatever the source, the result comes back on the
ISO spine: iso3c, year where the data is a panel, and one column per
indicator.
Arguments
- source
A registered source name (see
country_sources()).- indicator
Indicator code(s). Name the vector to rename the columns, as in
world_data():c(gdp = "NY.GDP.PCAP.KD").- countries
Optional
iso3cvector;NULL(default) for all.- years
Optional numeric year vector;
NULLfor the provider's default.- ...
Passed to the source's own
fetchfunction.
Examples
if (FALSE) { # \dontrun{
fetch_indicator("wdi", c(gdp = "NY.GDP.PCAP.KD"), years = 2020)
fetch_indicator("owid", "life_expectancy", years = 2020)
} # }
