gather_counties: Gather ACS attributes from multiple counties

Description Usage Arguments Value Examples

Description

Gather ACS attributes from multiple counties

Usage

1
2
gather_counties(counties, variables, geography = "tract", year = 2015,
  geometry = FALSE)

Arguments

counties

A vector of counties to collect data on. Must be in the following format 'SA,County Name' where SA is the state abbreviation and the Count Name is the name of the county. For example, 'MO,Jackson' would collect on Jackson county, Missouri.

variables

A list of ACM coded variables to collect.

geography

The geographical unit to collect on.

year

The ACS collection year.

geometry

An option to include the simple feature for mapping functionality.

Value

a simple feature data frame.

Examples

1
2
3
gather_counties(counties = c('MO,Clay', 'MO,Jackson'),
                variables = c('B02001_001E', 'B02001_003E'))
gather_counties('MO,Jackson', variables = 'B01001_001E', geometry = TRUE)

jcbain/haterzmapper documentation built on May 14, 2019, 2:06 p.m.