Skip to contents

Primary function that performs EJ/demographic screening.

Usage

EJfunction(LOI_data, data_year = NULL, buffer = NULL, raster = T, state = NULL)

Arguments

LOI_data

Required. Location of interest. Location data must be an SF object to undergo screening analysis.

data_year

Option for which EJSCREEN (and corresponding ACS) data vintage to return. Default is 2023.

buffer

Distance(s) used to create buffers (miles). Default is 1, 3, and 5 miles for points/linestrings and 0 miles for polygons.

raster

Block or raster apportioning for buffer? Default is T. If set to false, uses EJSCREEN's block approach.

state

User can restrict screening to particular states. Default is to screen for entire US.

Value

A list containing 2 sublists: (1) a LOI-buffer-level screening summary, and (2) a CBG-level screening summary for all block groups within affected communities.