Package: Rvoterdistance 2.1.0

Loren Collingwood
Rvoterdistance: Voter Distance to Polling Locations and Geographic Boundaries
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. Also computes minimum distance from voters to geographic boundaries such as rivers, state borders, or district lines provided as 'sf' line or polygon geometries. Core computation uses the Haversine formula and spherical cross-track distance implemented in C++ via 'Rcpp'.
Authors:
Rvoterdistance_2.1.0.tar.gz
Rvoterdistance_2.1.0.zip(r-4.7-x86_64)Rvoterdistance_2.1.0.zip(r-4.7-arm64)Rvoterdistance_2.1.0.zip(r-4.6-x86_64)Rvoterdistance_2.1.0.zip(r-4.6-arm64)Rvoterdistance_2.1.0.zip(r-4.5-x86_64)
Rvoterdistance_2.1.0.tgz(r-4.6-x86_64)Rvoterdistance_2.1.0.tgz(r-4.6-arm64)Rvoterdistance_2.1.0.tgz(r-4.5-x86_64)Rvoterdistance_2.1.0.tgz(r-4.5-arm64)
Rvoterdistance_2.1.0.tar.gz(r-4.7-arm64)Rvoterdistance_2.1.0.tar.gz(r-4.7-x86_64)Rvoterdistance_2.1.0.tar.gz(r-4.6-arm64)Rvoterdistance_2.1.0.tar.gz(r-4.6-x86_64)
Rvoterdistance_2.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
Rvoterdistance/json (API)
| # Install 'Rvoterdistance' in R: |
| install.packages('Rvoterdistance', repos = c('https://lorenc5.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/lorenc5/rvoterdistance/issues
- dbox - King County ballot drop box locations
- early_meck - Mecklenburg County early voting locations
- king_geo - King County voter sample with geocoded addresses
- voter_meck - Mecklenburg County voter sample with geocoded addresses
Last updated from:7627243b8e. Checks:13 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | NOTE | 95 | ||
| linux-devel-x86_64 | NOTE | 140 | ||
| source / vignettes | OK | 161 | ||
| linux-release-arm64 | NOTE | 135 | ||
| linux-release-x86_64 | NOTE | 119 | ||
| macos-release-arm64 | NOTE | 114 | ||
| macos-release-x86_64 | NOTE | 346 | ||
| macos-oldrel-arm64 | NOTE | 121 | ||
| macos-oldrel-x86_64 | NOTE | 295 | ||
| windows-devel-arm64 | NOTE | 225 | ||
| windows-devel-x86_64 | NOTE | 143 | ||
| windows-release-arm64 | NOTE | 213 | ||
| windows-release-x86_64 | NOTE | 99 | ||
| windows-oldrel-x86_64 | NOTE | 103 | ||
| wasm-release | OK | 94 |
Exports:dist_kmdist_miledist_to_boundaryhaversinenearest_location
Dependencies:Rcpp
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| King County ballot drop box locations | dbox |
| Calculate minimum distance in kilometers | dist_km |
| Calculate minimum distance in miles | dist_mile |
| Distance from voters to a geographic boundary | dist_to_boundary |
| Mecklenburg County early voting locations | early_meck |
| Haversine distance between two points | haversine |
| King County voter sample with geocoded addresses | king_geo |
| Find nearest polling locations for each voter | nearest_location |
| Mecklenburg County voter sample with geocoded addresses | voter_meck |
