knitr::opts_chunk$set(echo = TRUE) devtools::load_all()
This vignette covers package data. Central to all vignettes are data inputs in the form of, division codes, contraceptive use survey data, and population count data. These three types of data are included as package data.
divisions
contraceptive_use
and contraceptive_use_track20
population_counts
Division data is used as the a link between low-level divisions (country) and higher-level divisions (sub-regions, regions). All data inputs include a column of country division codes known as division numeric codes. After loading the package, enter divisions
into the console to access this data.
library(fpemlocal) divisions ??divisions
The country codes used by our package, known as division_numeric_code
, are found in this data. In our example we will execute a one-country run for Afghanistan, code 4
.
There are two contraceptive use survey datasets within the package. The dataset contraceptive_use
is compiled by the Unit Nation Population Division (UNPD) and the dataset contraceptive_use_track20
is compiled by Track20. The datasets are similar. There will be some differences for FP2020 focus countries. Enter ??contraceptive_use
and ??contraceptive_use_track20
for metadata.
contraceptive_use
Access population count data by entering population_counts
into the console. This data is compiled by the UNPD. Enter ??populatoin_counts
for the metadata.
population_counts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.