Description Usage Arguments Value
View source: R/acsDataInServiceArea.R
Return spatial polygon acs data within transit service area (defined by stops.txt bbox)
1 2 3 4 5 6 7 8 | getServiceAreaACS(
gtfs,
variables,
geography = "tract",
year = 2016,
survey = "acs5",
tidyCensusAPIKey = NULL
)
|
gtfs |
object from gtfsfunctions::formatGTFSObject() |
variables |
Character string or vector of character strings of variable IDs. tidycensus automatically returns the estimate and the margin of error associated with the variable. |
geography |
String string for tidycensus:;get_acs() (i.e. "tract", or "county") default is tract |
year |
int The year, or endyear, of the ACS sample. 5-year ACS data is available from 2009 through 2019. 1-year ACS data is available from 2005 through 2019. Defaults to 2016 |
survey |
string for the ACS contains one-year, three-year, and five-year surveys expressed as "acs1", "acs3", and "acs5". The default selection is "acs5." |
tidyCensusAPIKey |
String for tidy_census::get_acs() api key |
sf polygon of requested acs data in transit area
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.