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

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

Examples

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