greenbook_aid: Function to retrieve customized U.S. troop deployment data

Description Usage Arguments Value Author(s) References Examples

View source: R/greenbook_aid.R

Description

greenbook_aid() generates a data set containing USAID Overseas Loans and Grants data on foreign economic and military aid.

Usage

1
2
3
4
5
6
7
8
greenbook_aid(
  type = NA,
  recipient = NA,
  startyear,
  endyear,
  value = NULL,
  format = "long"
)

Arguments

type

The type of aid to return. Values can include economic, military, or all.

recipient

The recipient of the aid. Can include Correlates of War (COW) numerical country codes or ISO3C character country codes.

startyear

The first year for the series

endyear

The last year for the series

value

Indicates whether to return constant or current US dollar values for the observed aid amounts.

format

Gives the user the option to return the data in long or wide format.

Value

greenbook_aid() returns a data frame containing USAID Overseas Loans and Grants data on foreign economic and military aid.

Author(s)

Michael E. Flynn

References

United States Government. 2021. US Overseas Loans and Grants (Greenbook). United States Department of State.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(greenbook)

example <- greenbook_aid(recipient = NA, startyear = 1980, endyear = 2015)

head(example)


## End(Not run)

meflynn/greenbook documentation built on Dec. 21, 2021, 4:54 p.m.