get_geoid: get_geoid

Description Usage Arguments Value Examples

View source: R/get_geoid.R

Description

get_geoid

Usage

1
get_geoid(location, acs_geometry = get_acs_geometry()$block_groups)

Arguments

location

data frame with columns "lon" and "lat"

acs_geometry

list of acs geometries

If the acs_geometry is at the block group level, the returned GEOID will be the block group of the target location. Likewise, if the acs_geometry is at the census tract level, the GEOID returned will be the census tract containing the target location.

When a location lies on the edge of multiple geographies, only the first detected geography will be returned. If multiple geographies are detected, the multiple_intersections flag is set to TRUE.

Value

data frame containing input coordinates, GEOID for geographic region, geography name, multiple intersections flag, ACS total population, and matching geometry

Examples

1
2
3
4
5
## Not run: 
options(tigris_use_cache = TRUE)
get_geoid(GOTO_M1)

## End(Not run)

johnaclouse/geospatialized documentation built on March 6, 2022, 12:31 a.m.