nbhds.from.sf: nbhds.from.sf

View source: R/tigris-fcns.R

nbhds.from.sfR Documentation

nbhds.from.sf

Description

From a bbox or sf object x, gets tracts or block groups over overlapping counties. For areas that may be smaller than counties, suggest using st_bbox first.

Usage

nbhds.from.sf(x = NULL, .countyfps = NULL, query.fcn = tigris::tracts, ...)

Arguments

x

sf or bbox object spanning area you want to filter polys to. Will use get intersection if sf object or crop if bbox.

.countyfps

Alternative to x, countyfp (as 5-char characters) to get areas for.

query.fcn

tigris query fcn: tracts or block_groups

...

passed onto query.fcn

Details

Note that they may still be trimmed to match supplied area, if x isn't coterminous with counties.


kmcd39/geox documentation built on Nov. 15, 2024, 2:03 a.m.