Provides numbers that will populate the poverty calculator main chart.

ui_pc_charts(
  country = c("AGO"),
  year = "all",
  povline = 1.9,
  fill_gaps = FALSE,
  group_by = c("none", "wb"),
  welfare_type = c("all", "consumption", "income"),
  reporting_level = c("all", "national", "rural", "urban"),
  pop_units = 1e+06,
  lkup
)

Arguments

country

character: Country ISO 3 codes

year

integer: Reporting year

povline

numeric: Poverty line

fill_gaps

logical: If set to TRUE, will interpolate / extrapolate values for missing years

group_by

character: Will return aggregated values for predefined sub-groups

welfare_type

character: Welfare type

reporting_level

character: Geographical reporting level

pop_units

numeric: Units used to express population numbers (default to million)

lkup

list: A list of lkup tables

Value

data.table