getcountymaps: Get County Map

View source: R/getcountymaps.R

getcountymapsR Documentation

Get County Map

Description

Create a SpatialPolygonsDataFrame of all the counties in the continental US

Usage

getcountymaps(
  filelocation =
    "https://www2.census.gov/geo/tiger/GENZ2022/shp/cb_2022_us_county_20m.zip",
  dest = "data",
  local = F,
  continentalonly = T
)

Arguments

filelocation

a character string describing where to get the shape files. By default, assumes the files should be downloaed from the US Census Bureau at https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html. Local file addresses can also be used.

dest

the local destination where the files should be downloaded to.

local

a logical value indicating whether filelocation is a local address or not.

continentalonly

a logial value indicating whether the resulting map data should only contain the continental US or the entire US

Value

a SpatialPolygonsDataFrame with polygons for each county within the United States.


crazybilly/rmapcounties documentation built on Jan. 4, 2024, 6:32 a.m.