popdata | R Documentation |
R client for UNHCR popdata
Access UNHCR Popdata platform figures
popdata(
report = c("asr", "mysr", "pf"),
table = c("refugees", "refugeeLike", "returnees", "demographics", "idp", "rsd",
"stateless", "oip", "other", "hostcommunity", "coo", "ppg", "specific", "as2",
"comments"),
year = 2022,
quiet = getOption("popdata_quiet")
)
pd_asr(
table = c("refugees", "refugeelike", "refugeeLike", "returnees", "demographics", "idp",
"rsd", "stateless", "oip", "other", "hostcommunity", "hostCommunity", "as2",
"comments"),
year = 2022,
quiet = getOption("popdata_quiet")
)
pd_mysr(
table = c("refugees", "refugeeLike", "returnees", "idp", "rsd", "stateless", "other",
"oip", "hostCommunity", "as2", "comments"),
year = 2023,
quiet = getOption("popdata_quiet")
)
pd_pf(
table = c("coo", "ppg", "specific"),
year = 2020,
quiet = getOption("popdata_quiet")
)
report |
character, the type of report asr, mysr or pf |
table |
character, the indicator refugees, refugeeLike, returnees, demographics, idp, rsd, stateless, oip, other, hostcommunity, coo, ppg or specifics |
year |
integer, the year |
quiet |
logical, print message on updating session cookie or not. options(popdata_quiet = TRUE) can also be used |
A tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.