setup_airport_attribution: setup_airport_attribution

Description Usage Arguments Value

View source: R/airport_to_county_import_distrib.R

Description

Cluster Airports in close proximity

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
setup_airport_attribution(
  states_of_interest,
  regioncode,
  yr,
  local_dir = "data/",
  write_county_shapefiles,
  mean_travel_file = file.path("data", "travel_mean.csv"),
  travelers_threshold = 10000,
  airport_cluster_threshold = 80,
  plot = FALSE,
  cores = 4
)

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

mean_travel_file

Filename of monthly mean travelers into each airport in the region

airport_cluster_threshold

distance (km) in which airports should be considered clustered.

plot

logical, whether to plot tesselation maps

cores

number of cores to run in parallel

airports_to_consider

data.frame of airports specific to the region of interest

Value

A data.frame of airports and counties with attributions


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