Download TIGER county spatial data.
download_counties.Rd
Shortcut function that downloads and extracts TIGER U.S. County boundaries and returns them as a terra SpatVector object.
Usage
download_counties(template, output = tempfile(fileext = ".gpkg"))
Examples
# example code
# \donttest{
## This example requires an internet connection to run
dem <- system.file("extdata", "thompsoncreek.tif", package = "SELECTRdata")
dem <- terra::rast(dem)
counties <- download_counties(template = dem)
# }