Learn R Programming

spData (version 2.0.1)

elect80: 1980 Presidential election results

Description

A data set for 1980 Presidential election results covering 3,107 US counties using geographical coordinates. In addition, three spatial neighbour objects, k4 not using Great Circle distances, dll using Great Circle distances, and e80_queen of Queen contiguities for equivalent County polygons taken from file co1980p020.tar.gz on the USGS National Atlas site, and a spatial weights object imported from elect.ford - a 4-nearest neighbour non-GC row-standardised object, but with coercion to symmetry.

Usage

elect80

Arguments

Format

A SpatialPointsDataFrame with 3107 observations on the following 7 variables.

  • FIPS a factor of county FIPS codes

  • long a numeric vector of longitude values

  • lat a numeric vector of latitude values

  • pc_turnout Votes cast as proportion of population over age 19 eligible to vote

  • pc_college Population with college degrees as proportion of population over age 19 eligible to vote

  • pc_homeownership Homeownership as proportion of population over age 19 eligible to vote

  • pc_income Income per capita of population over age 19 eligible to vote

Examples

Run this code
if (requireNamespace("sp", quietly = TRUE)) {
  library(sp)
  data(elect80)
  summary(elect80)
  plot(elect80)
}

Run the code above in your browser using DataLab