get_ej_areas: Get MPCA's Environmental Justice Shapefiles from the MN...

View source: R/get_ej_areas.R

get_ej_areasR Documentation

Get MPCA's Environmental Justice Shapefiles from the MN Geocommons

Description

Download a polygon shapefile of Census Tracts with data columns identifying the status MPCA as Environmental Justice areas of concern.

Usage

get_ej_areas(
  path = getwd(),
  folder_name = "mpca_ej_areas",
  add_date = TRUE,
  use_latlong = TRUE,
  data_only = FALSE
)

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.

use_latlong

Return shapefile with lat/long coordinates (WGS 84). Default is X/Y coordinates in UTM 15N.

data_only

Drop the spatial geometry and return a data frame of only the demographic information.

Details

Data sources MN GEOCOMMONS: https://gisdata.mn.gov/ EJ areas: https://gisdata.mn.gov/dataset/env-ej-mpca-census

Examples

library(mpcaej)

## Not run: 
ej <- get_ej()

ej[1, ]

plot(ej[ , 1])

## End(Not run)


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