Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

append_geoid

Retrieve GEOID from the Census Geocoder by address


Description

Returns GEOID for 2010 geographies.

Usage

append_geoid(address, geoid_type = "block")

Arguments

address

A tibble/data frame with (at a minimum, others can be present) either character columns street, city, and state OR numeric columns lat and lon. Lat/lon columns take priority.

geoid_type

GEOID level to return, c('county', 'tract', 'block group', 'block'). Defaults to block.

Value

the original tibble with GEOIDs appended as a new column called geoid.

Author(s)

Examples

## Not run: 
airports <- dplyr::data_frame(
  street = "700 Catalina Dr", city = "Daytona Beach", state = "FL"
)
append_geoid(airports, 'tract')

## End(Not run)

tigris

Load Census TIGER/Line Shapefiles

v1.0
MIT + file LICENSE
Authors
Kyle Walker [aut, cre], Bob Rudis [ctb]
Initial release
2020-07-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.