povcalnet_wb Returns the official WB regional estimates
povcalnet_wb( povline = 1.9, year = "all", url = "http://iresearch.worldbank.org", format = "csv" )
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` |
data.frame
# \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 307. 0.0231 0.00455 #> 2 Europe and~ ECA 2015 1.9 513. 0.0161 0.00446 #> 3 Latin Amer~ LAC 2015 1.9 478. 0.0409 0.0151 #> 4 Middle Eas~ MNA 2015 1.9 283. 0.0382 0.00895 #> 5 Other high~ OHI 2015 1.9 1638. 0.00707 0.00481 #> 6 South Asia SAS 2015 1.9 131. 0.123 0.0216 #> 7 Sub-Sahara~ SSA 2015 1.9 109. 0.423 0.162 #> 8 World Total WLD 2015 1.9 462. 0.100 0.0310 #> # ... with 2 more variables: povertygapsq <dbl>, population <dbl># }