undata_url_to_query: Convert the undata url to the query argument needed to...

View source: R/get_undata.R

undata_url_to_queryR Documentation

Convert the undata url to the query argument needed to reference specific tables

Description

Convert the undata url to the query argument needed to reference specific tables

Usage

undata_url_to_query(table_url, base_url = "http://data.un.org/Data.aspx")

Arguments

table_url

[character(1)]
The full url to a specific table. If filters, columns, sort order or other options are selected, use the 'Link to this page' -> 'Update' button to update the table_url.

base_url

[character(1)]
The base url of the data.un.org site. Default is 'http://data.un.org/Data.aspx'.

Value

[list()] of query parameters to pass to get_undata_table or other related undata functions.

See Also

Other get_undata: download_undata_table(), get_undata_nrecords(), get_undata_update_dates()

Examples

table_url <- "http://data.un.org/Data.aspx?d=PopDiv&f=variableID%3a12"
query <- undata_url_to_query(table_url)

ihmeuw-demographics/demUtils documentation built on Feb. 27, 2024, 1:25 p.m.