ngdist: Road Distances Between Nigerian State Capitals

ngdistR Documentation

Road Distances Between Nigerian State Capitals

Description

A symmetric distance matrix containing approximate road (driving) distances in kilometres between all 37 Nigerian State capitals (including Abuja for the Federal Capital Territory).

Usage

ngdist

Format

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").

Details

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.

See Also

ng_distance for querying a single pair of cities.

Examples

data(ngdist)
labels(ngdist)          # city names
as.matrix(ngdist)[1:5, 1:5]


naijR documentation built on March 14, 2026, 1:06 a.m.