Description Usage Arguments Details Value Examples
This function returns a dataframe with Congressional data for a vector of Latitudes and Longitudes in a dataframe.
1 | get_cd_data(Latitude, Longitude)
|
Latitude |
vector of Latitudes |
Longitude |
Vector of Longitudes |
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
A datafame with associated CD info. Will be in correct order as original Lat/Long to make it easy to append the data
1 2 3 | cds<-get_cd_data(NEA$CoLatitude, NEA$CoLongitude)
NEA$CD_GEOID<-cds$CD_GEOID
NEA$CD_NameLSAD<-cds$CD_NameLSAD
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.