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'.

Version: 2.0.0
Depends: R (≥ 4.0)
Imports: Rcpp (≥ 1.0.0)
LinkingTo: Rcpp
Suggests: sf, testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-05-27
DOI: 10.32614/CRAN.package.Rvoterdistance
Author: Loren Collingwood [aut, cre]
Maintainer: Loren Collingwood <lcollingwood at unm.edu>
BugReports: https://github.com/lorenc5/Rvoterdistance/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/lorenc5/Rvoterdistance
NeedsCompilation: yes
Materials: README
CRAN checks: Rvoterdistance results

Documentation:

Reference manual: Rvoterdistance.html , Rvoterdistance.pdf
Vignettes: Introduction to Rvoterdistance (source, R code)

Downloads:

Package source: Rvoterdistance_2.0.0.tar.gz
Windows binaries: r-devel: not available, r-release: Rvoterdistance_2.0.0.zip, r-oldrel: Rvoterdistance_2.0.0.zip
macOS binaries: r-release (arm64): Rvoterdistance_2.0.0.tgz, r-oldrel (arm64): Rvoterdistance_2.0.0.tgz, r-release (x86_64): Rvoterdistance_2.0.0.tgz, r-oldrel (x86_64): Rvoterdistance_2.0.0.tgz
Old sources: Rvoterdistance archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=Rvoterdistance to link to this page.