trim.tigris.waters: functions that interface with the 'tigris' library to query...

View source: R/tigris-fcns.R

trim.tigris.watersR Documentation

functions that interface with the tigris library to query layers.

Description

The flow is: given a spatial layer, can query counties with county_subset, a thin wrapper. Then other thin wrappers will call trim.tigris.waters

Usage

trim.tigris.waters(
  wtr,
  mtfccs = c("H2051", "H2053", "H3010", "H2040"),
  size.floor = 1e+05
)

Arguments

wtr

Water simple features, as from tigris::water, with lowercase column names

mtfccs

census mtfcc codes to retain

size.floor

A catch-all size filter to retain larger features. 100,000 square meters by default.

Details

Tigris returns many very small water areas— for most purposes, retaining only a subset of these water areas is preferable. This function applies filters based on census mtfcc code, feature name, and size to subset features.

For list of MTFF codes: https://www2.census.gov/geo/pdfs/reference/mtfccs2022.pdf


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