join_to_spatial: Join aggregated party data to spatial data

Description Usage Arguments Value

View source: R/data-manipulation.R

Description

Join aggregated party data to spatial data

Usage

1
2
join_to_spatial(party_votes, elections, resolution = c("high", "low"),
  election_date = NULL)

Arguments

party_votes

A data frame of vote percentages by party.

elections

A data frame containing metadata about the NNV elections being mapped.

resolution

Use "high" or "low" resolution geographic data.

election_date

The date to use when getting the county boundaries.

Value

A sf object with polygons for the appropriate geographies and the data joined to them.


mapping-elections/mappingelections documentation built on July 24, 2019, 9:42 a.m.