Skip to contents

R client for UNHCR popdata

Access UNHCR Popdata platform figures

Usage

popdata(
  report = c("asr", "mysr"),
  table = c("refugees", "refugeeLike", "demographics", "rsd", "as2", "idp", "returnees",
    "stateless", "other", "oip", "hostCommunity", "comments"),
  year = 2022,
  quiet = getOption("popdata_quiet")
)

pd_asr(
  table = c("refugees", "refugeeLike", "demographics", "rsd", "as2", "idp", "returnees",
    "stateless", "other", "oip", "hostCommunity", "comments"),
  year = 2022,
  quiet = getOption("popdata_quiet")
)

pd_mysr(
  table = c("refugees", "refugeeLike", "demographics", "rsd", "as2", "idp", "returnees",
    "stateless", "other", "oip", "hostCommunity", "comments"),
  year = 2023,
  quiet = getOption("popdata_quiet")
)

Arguments

report

character, the type of report asr, mysr

table

character, any of the follwoing tables from within popdata:

             *  "refugees", 
             *  "refugeeLike",
             *  "demographics",
             *  "rsd",
             *  "as2", 
             *  "idp",
             *  "returnees", 
             *  "stateless", 
             *  "other",
             *  "oip", 
             *  "hostCommunity",
             *  "comments"

year

year for release

quiet

option

Value

A tibble