get_cd_data: Get Dataframe of Matching Congressional District

Description Usage Arguments Details Value Examples

Description

This function returns a dataframe with Congressional data for a vector of Latitudes and Longitudes in a dataframe.

Usage

1
get_cd_data(Latitude, Longitude)

Arguments

Latitude

vector of Latitudes

Longitude

Vector of Longitudes

Details

The package operates by matching Lat/Long to shapefiles of 114th Congressional Districts - valid from 2015-2017.

It returns a dataframe with the following components: GEOID: The GEOID of the CD NAME_LSAD: The Name of the CD

Value

A datafame with associated CD info. Will be in correct order as original Lat/Long to make it easy to append the data

Examples

1
2
3
cds<-get_cd_data(NEA$CoLatitude, NEA$CoLongitude)
NEA$CD_GEOID<-cds$CD_GEOID
NEA$CD_NameLSAD<-cds$CD_NameLSAD

gmellon/neaR documentation built on May 14, 2019, 2:42 p.m.