Title: | World Population Data from the UN |
---|---|
Description: | Pulls data from the UN's World Population API, pre-bakes some commonly used datasets |
Authors: | Chitra Saraswati [aut, cre], Janith Wanniarachchi [aut], James Goldie [aut], Michael Lydeamore [aut] |
Maintainer: | Chitra Saraswati <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.1003 |
Built: | 2024-11-01 07:16:27 UTC |
Source: | https://github.com/chitrams/populaR |
Gets information about indicators (i.e. dataset) and locations for further querying from the WPP API
get_base_levels(target, .progress = TRUE)
get_base_levels(target, .progress = TRUE)
target |
String, one of "Indicators" or "locations" |
.progress |
Boolean, whether to show progress bars for query progress. Default TRUE |
tibble
containing a wide range of information about the requested endpoint
get_base_levels("Indicators") get_base_levels("locations")
get_base_levels("Indicators") get_base_levels("locations")
Get numeric IDs of indicators and locations for the WPP API
get_id(name, type, search = TRUE, .progress = TRUE)
get_id(name, type, search = TRUE, .progress = TRUE)
name |
Name of the variable to search for |
type |
One of "locations" or "Indicators", which dataset to search |
search |
Whether to perform simple search/matching. Defaults to TRUE |
.progress |
Boolean, whether to show progress bars for query progress. Default TRUE |
tibble
containing only the matching records. Column id
is the numeric
id which will be needed downstream
get_id("Australia", type = "locations")
get_id("Australia", type = "locations")