get_county_pops: get_county_pops

Description Usage Arguments Details Value

View source: R/airport_to_county_import_distrib.R

Description

These are all of the functions needed to do the airport-to-county importation distribution process.

Usage

1
2
3
4
5
6
7
get_county_pops(
  states_of_interest,
  regioncode,
  yr = 2010,
  local_dir = "data/",
  write_county_shapefiles = TRUE
)

Arguments

states_of_interest

States for which to get county populations

regioncode

Region/project name

yr

Year of county population data

local_dir

local data directory

write_county_shapefiles

logical

Details

Query the census API to get the county populations for the states of interest, assigned to the given region code.

Assumes census_api_key is already called by the calling client with 'census_api_key(key="[KEY]", install=TRUE)“ and 'options(tigris_use_cache = TRUE)'

Value

A data.frame of clustered airports, dates, and nmber of importations


HopkinsIDD/covidImportation documentation built on Sept. 14, 2020, 2:43 p.m.