trim.tigris.waters | R Documentation |
tigris
library to query layers.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
trim.tigris.waters(
wtr,
mtfccs = c("H2051", "H2053", "H3010", "H2040"),
size.floor = 1e+05
)
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. |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.