The goal of geodist is to provide the same data from GeoDist ready to be used in R (i.e. with the gravity package).

The package provides data on countries and their main city or agglomeration and the different distance measures and dummy variables indicating whether two countries are contiguous, share a common language or a colonial relationship.

geodist can be installed by running

# install.packages("remotes")
install_github("pachamaltese/cepiigeodist")

The main source to obtain the data in this package is:

Mayer, T. & Zignago, S. (2011). Notes on CEPII’s distances measures: the GeoDist Database. CEPII Working Paper 2011-25