The R package gravity.distances provides distances between geographic entities — such as countries, US states or Canadian provinces — that are consistent with the gravity equation in international economics.
To install the package in R, simply run the following commands:
install.packages("remotes")
remotes::install_github("julianhinz/gravity.distances")
For more details and usage examples check out the respective GitHub repositories:
@misc{gravity_distances_2018,
title = {gravity.distances},
author = {Julian Hinz},
year = {2018},
note = {R package},
url = {https://github.com/julianhinz/gravity.distances}
}