Getting data from data.un.org

Functions to scrape tables from data.un.org

arc()

Calculate annualized rate of change (ARC)

assert_is_unique_dt() identify_non_unique_dt()

Are the rows of the input data.table unique?

change_col_type()

Change data.table column types

combine_pdfs()

Combine pdfs togethers

demUtils

Utility functions for demographic data

download_undata_table()

Download data.un.org tables as csvs

expand()

Expand

extrapolate()

Extrapolate

get_undata_nrecords()

Get the total number of records (rows) available in the specified table.

get_undata_update_dates()

Get the listed update dates for a data.un.org table

interpolate()

Interpolate

logit() invlogit() check_logit_inputs()

Logit and inverse logit functions

pct_change()

Calculate percent change

prioritize_dt()

Rank non-unique rows in a data.table using defined priority orders

read_undata_files()

Combine together downloaded undata files

rinvgamma()

The Inverse Gamma Distribution

single_download_undata_table()

Helper function to download all records for a given data.un.org query

summarize_dt()

Calculate summary statistics

undata_url_to_query()

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