getServiceAreaACS: Return spatial polygon acs data within transit service area...

Description Usage Arguments Value

View source: R/acsDataInServiceArea.R

Description

Return spatial polygon acs data within transit service area (defined by stops.txt bbox)

Usage

1
2
3
4
5
6
7
8
getServiceAreaACS(
  gtfs,
  variables,
  geography = "tract",
  year = 2016,
  survey = "acs5",
  tidyCensusAPIKey = NULL
)

Arguments

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

Value

sf polygon of requested acs data in transit area


b-tomhave/gtfsFunctions documentation built on Dec. 19, 2021, 6:37 a.m.