Description Usage Arguments Details Value
View source: R/airport_to_county_import_distrib.R
These are all of the functions needed to do the airport-to-county importation distribution process.
1 2 3 4 5 6 7 | get_county_pops(
states_of_interest,
regioncode,
yr = 2010,
local_dir = "data/",
write_county_shapefiles = TRUE
)
|
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 |
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)'
A data.frame of clustered airports, dates, and nmber of importations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.