Learn R Programming

Rvoterdistance (version 1.1)

Calculates the Distance Between Voter and Multiple Polling Locations

Description

Designed to calculate the distance between each voter in a voter file -- given lat/long coordinates -- and many potential (early) polling or vote by mail drop box locations, then return the minimum distance.

Copy Link

Version

Install

install.packages('Rvoterdistance')

Monthly Downloads

9

Version

1.1

License

GPL (>= 2)

Maintainer

Loren Collingwood

Last Published

March 20th, 2017

Functions in Rvoterdistance (1.1)

nearest_dbox

Calculates nearest drop box or polling location
nearest_dbox2

Nearest Dbox or Polling Location 2
dist_mile

Calculates nearest drop box or polling location, in miles
distanceEarth

Calculate the distance between two points
rad2deg

Radian to Degrees
vecminInd

Minimum element in vector
king_geo

Dataset of King County voters' lat/long
early_meck

Dataset of early vote locations
Rvoterdistance-package

dbox

Dataset of drop box locations
dist_km

Calculates nearest drop box or polling location, in kilometers
deg2rad

Degrees to Radian