| ngdist | R Documentation |
A symmetric distance matrix containing approximate road (driving) distances in kilometres between all 37 Nigerian State capitals (including Abuja for the Federal Capital Territory).
ngdist
An object of class dist with 37 labels — one for each
State capital. The labels are city names in title case (e.g.
"Lagos", "Port Harcourt").
The matrix holds 37 \times 36 / 2 = 666
unique pairwise distances. Values are sourced from UNDP and represent
typical road travel; actual distances may vary with route choice,
road conditions, or detours.
For a convenient way to look up individual distances, see
ng_distance.
ng_distance for querying a single pair of cities.
data(ngdist)
labels(ngdist) # city names
as.matrix(ngdist)[1:5, 1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.