dollars2shape: A Function for Merging World Bank IBRD-IDA Project Amounts...

Description Usage Arguments Examples

View source: R/project-split-functions.R

Description

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.

Usage

1
2
3
dollars2shape(shapefile, max_precision = 3, amt_var = "commitments",
  sectors = "all", project_status = c("Implementation", "Completion"),
  fetch = TRUE, projects = NA, locations = NA)

Arguments

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.

Examples

1
dollars2shape(shapefile = shape, max_precision = 2, amt_var = "commitments", sectors = c(120, 121))

mdilorenzo/aidtools documentation built on May 22, 2019, 3:37 p.m.