read_mngeo: Get Shapefiles from the MN Geocommons

View source: R/read_mngeo.R

read_mngeoR Documentation

Get Shapefiles from the MN Geocommons

Description

Downloads the shapefile from a MN Geocommons webpage at https://gisdata.mn.gov/.

Usage

read_mngeo(
  url =
    "https://resources.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_pca/env_ej_mpca_census/shp_env_ej_mpca_census.zip",
  layer = "ej_mpca_census.shp",
  path = getwd(),
  folder_name = "mngeo_shapes",
  add_date = TRUE
)

Arguments

path

Directory to save the ZIP file to, if necessary.

folder_name

Name of folder to save downloaded ZIP file to, if necessary.

add_date

If TRUE, add today's date to the folder name. Helps to prevent overwriting existing folders.

Details

Example data source MPCA EJ areas: https://gisdata.mn.gov/dataset/env-ej-mpca-census

Examples

library(mpcaej)

## Not run: 
ej <- read_mngeo(url = "https://gisdata.mn.gov/dataset/env-ej-mpca-census", layer = "ej_mpca_census.shp")

ej[1, ]

plot(ej[ , 1])

## End(Not run)


MPCA-data/mpcaej documentation built on July 29, 2023, 10:02 p.m.