Skip to content

ejanalysis/proxistat

Repository files navigation

proxistat package

The proxistat package for R has functions helping to calculate distances between geographic points, such as the distances between all points, distances to all points within some maximum distance, distance to nearest single point, etc.

This package also can create a proximity score for each spatial unit like a Census block group, to quantify the distance-weighted count of nearby points. This proximity score can be used in environmental justice (EJ) analysis, for example. This package uses the sp package for the basic distance calculation.

Key functions include get.nearest() to find the one topoint nearest each frompoint, get.distances() to find distances quickly within an optional search radius, and get.distances.all() to find distances from all frompoints to alltopoints. The function proxistat() creates a proximity score that quantifies, for each spatial unit like a Census block group, how many topoints are nearby and how close they are.

Installation

This package is not on CRAN yet, but you can install it from Github:

if (!require('devtools')) install.packages('devtools')
devtools::install_github('ejanalysis/proxistat')

Documentation

In addition to documentation in the package, the help in pdf format is here: http://ejanalysis.github.io/proxistat/proxistat.pdf

Related Packages

This package is one of a series of R packages related to environmental justice (EJ) analysis, as part of ejanalysis.com.

This and related packages, once each is made available as a public repository on GitHub, until available on cran, can be installed using the devtools package:

if (!require('devtools')) install.packages('devtools')
devtools::install_github("ejanalysis/analyze.stuff")  
devtools::install_github("ejanalysis/countyhealthrankings")  
devtools::install_github("ejanalysis/UScensus2010blocks")  
devtools::install_github("ejanalysis/ACSdownload")  
devtools::install_github(c("ejanalysis/proxistat", "ejanalysis/ejanalysis"))
devtools::install_github("ejanalysis/ejscreen")

About

Tools for analysis of distance and proximity scores in R

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published