get_basedata | R Documentation |
get_basedata()
generates a customized data frame containing data obtained from David Vine's U.S. basing data.
get_basedata(host = NA, country_count = FALSE, groupvar = NULL)
host |
The Correlates of War (COW) numeric country code or ISO3C code for the host country or countries in the series |
country_count |
Logical. Should the function return a country-level count of the total number of bases or the country-site data |
groupvar |
A character string indicating how country count totals should be generated. Accepted values are 'countryname', 'ccode', or 'iso3c'. Can take on Required when using country_count argument. |
Our research team updated these data through 2018.
get_basedata()
returns a data frame containing information on U.S. military bases present within selected host countries. This can be customized to include country-base observations or country-count observations.
Michael E. Flynn
David Vine. 2015. Base Nation. Metropolitan Books. New York, NY.
## Not run:
library(tidyverse)
library(troopdata)
example <- get_basedata(host = NA)
head(example)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.