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

Description Usage Arguments Value Author(s) References Examples

View source: R/get_troopdata.R

Description

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

Usage

1
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.

Author(s)

Michael E. Flynn

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.

Examples

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

example <- get_troopdata(host = NA, branch = TRUE, startyear = 1980, endyear = 2015)

head(example)


## End(Not run)

troopdata documentation built on Feb. 1, 2022, 1:08 a.m.