povcalnet_wb Returns the official WB regional estimates

povcalnet_wb(povline = 1.9, year = "all",
  url = "http://iresearch.worldbank.org", format = "csv")

Arguments

povline

numeric: poverty line (in 2011 PPP-adjusted USD) to calculate poverty measures

year

numeric: list of years, or `all`.

url

character: API root URL. For testing purposes only, should not be changed for 99 percent of users.

format

character: Response format to be requested from the API: `csv` or `json`

Value

data.frame

Examples

# \donttest{ povcalnet_wb(year = 2015)
#> # A tibble: 8 x 9 #> regiontitle regioncode year povertyline mean headcount povertygap #> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 East Asia ~ EAP 2015 1.9 308. 0.0231 0.00455 #> 2 Europe and~ ECA 2015 1.9 514. 0.0146 0.00402 #> 3 Latin Amer~ LAC 2015 1.9 474. 0.0388 0.0127 #> 4 Middle Eas~ MNA 2015 1.9 281. 0.0421 0.00996 #> 5 Other high~ OHI 2015 1.9 1625. 0.00679 0.00497 #> 6 South Asia SAS 2015 1.9 131. 0.124 0.0218 #> 7 Sub-Sahara~ SSA 2015 1.9 112. 0.414 0.158 #> 8 World Total WLD 2015 1.9 459. 0.0998 0.0306 #> # ... with 2 more variables: povertygapsq <dbl>, population <dbl>
# }