Learn R Programming

troopdata (version 1.0.2)

get_builddata: Function to retrieve customized U.S. construction spending data.

Description

get_builddata() generates a customized data frame containing location-project-year observations of U.S. military construction and housing spending in thousands of current dollars.

Usage

get_builddata(host = NA, startyear, endyear)

Value

get_builddata() returns a data frame containing location-project-year observations of U.S. military construction and housing spending in thousands of current dollars.

Arguments

host

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

startyear

The first year for the series

endyear

The last year for the series

Author

Michael E. Flynn

References

Michael A. Allen, Michael E. Flynn, and Carla Martinez Machain. 2020. "Outside the wire: US military deployments and public opinion in host states." American Political Science Review. 114(2): 326-341.

Examples

Run this code

if (FALSE) {
library(tidyverse)
library(troopdata)

example <- get_builddata(host = NA, startyear = 2008, endyear = 2019)

head(example)

}



Run the code above in your browser using DataLab