get_troopdata() generates a customized data frame containing country-year observations of U.S. military deployments overseas.

get_troopdata(host = NA, branch = FALSE, startyear, endyear)

Arguments

host

The Correlates of War (COW) numeric country code or ISO3C code for the host country or countries in the series

branch

Logical. Should the function return a single vector containing total troop values or multiple vectors containing total values and values for individual branches? Default is FALSE.

startyear

The first year for the series

endyear

The last year for the series

Value

get_troopdata() returns a data frame containing country-year observations for U.S. troop deployments.

References

Tim Kane. Global U.S. troop deployment, 1950-2003. Technical Report. Heritage Foundation, Washington, D.C.

Michael A. Allen, Michael E. Flynn, and Carla Martinez Machain. 2021. "Global U.S. military deployment data: 1950-2020." Working Paper.

Author

Michael E. Flynn

Examples

if (FALSE) { library(tidyverse) library(troopdata) example <- get_troopdata(host = NA, branch = TRUE, startyear = 1980, endyear = 2015) head(example) }