popdata: popdata

View source: R/popdata.R

popdataR Documentation

popdata

Description

R client for UNHCR popdata

Access UNHCR Popdata platform figures

Usage

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")
)

Arguments

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

Value

A tibble

Author(s)

mail@ahmadoudicko.com


PopulationStatistics/popdata documentation built on Sept. 29, 2023, 2:33 a.m.