Rvoterdistance: Voter Distance to Polling Locations

Calculates the distance between each voter in a voter file (given lat/long coordinates or sf point geometries) and multiple polling or vote-by-mail drop box locations. Returns nearest location, k-nearest locations, or all locations within a distance threshold. Core computation uses the Haversine formula implemented in C++ via 'Rcpp'.

Package details

AuthorLoren Collingwood [aut, cre]
MaintainerLoren Collingwood <lcollingwood@unm.edu>
LicenseGPL (>= 2)
Version2.0.0
URL https://github.com/lorenc5/Rvoterdistance
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("Rvoterdistance")

Try the Rvoterdistance package in your browser

Any scripts or data that you put into this service are public.

Rvoterdistance documentation built on May 28, 2026, 1:06 a.m.