get_table {ppitables} | R Documentation |
Get PPI table/s based on a specified PPI table/s search output
Description
Get PPI table/s based on a specified PPI table/s search output
Usage
get_table(
region = steer$region,
country = steer$country[steer$region %in% region],
type = steer$type[steer$country %in% country]
)
Arguments
region |
Region of the world to search PPI table from. Default is
|
country |
Country to search PPI table from. Default is vector of all country names from the specified region/s. Allows specification of one country name or a vector of country names. |
type |
Type of PPI calculation used. Can be one of two options: |
Value
A data frame in tibble
format of corresponding PPI table/s
matching the search parameters. The data frame is in tidy
format
and contains the corresponding poverty probability (ppi
) for a
specific score (score
) for various poverty definitions)
for the country (country
) and PPI calculation type (type
).
Examples
## Create a tidy format PPI table for Nepal
get_table(region = "Asia", country = "Nepal")