Description Usage Arguments Examples
View source: R/project-split-functions.R
Get amount for equal splits of World Bank IBRD-IDA projects across locations. The returned object is the shapefile appended with a column counting dollar amounts of World Bank projects for every year.
1 2 3 | dollars2shape(shapefile, max_precision = 3, amt_var = "commitments",
sectors = "all", project_status = c("Implementation", "Completion"),
fetch = TRUE, projects = NA, locations = NA)
|
shapefile |
Shapefile to append data slot with columns for financial amounts by year. |
max_precision |
Maximum precision score of project locations to include. |
amt_var |
Desired financial amounts: "commitments" or "disbursements". |
project_status |
Vector containing "Implementation" and/or "Completion". Both by default. |
fetch |
Defaults to TRUE. If TRUE, gets World Bank IBRD-IDA from AidData website. If FALSE, user needs to supply 2 data frames as objects: projects and locations. |
sector |
Sectors to include. Default is "all" which returns all sectors. |
1 | dollars2shape(shapefile = shape, max_precision = 2, amt_var = "commitments", sectors = c(120, 121))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.