naijR
R package on Nigeria and for Nigeria. Contribute to ropensci/naijR development by creating an account on GitHub.
naijR is assembling the Nigerian reference data R analysts otherwise hand-code every time.
◆Recent moves
- 5mo ago
Road distances between all 37 state capitals
Adds `ngdist`, a UNDP-sourced `dist` object of road distances between every pair of Nigerian state capitals, plus `ng_distance()` for lookups in kilometres or miles. Extends the package from naming and boundary data into derived geography — the kind of table analysts currently rebuild by hand or scrape.
View source ↗ - 5mo ago
Development snapshot of the distance-matrix work
A development build carrying the same `ngdist` and `ng_distance()` changes that shipped as 0.7.0 two days later. Same content, pre-release version number — not a separate move.
View source ↗ - 2y ago
More examples and tighter internal data compression
Documentation expansion and increased compression of the bundled datasets. Housekeeping following the larger 0.6.0 restructuring.
View source ↗ - 3y ago
sf replaces rgdal; LGA name collisions get a resolver
Rebases the spatial layer on sf, adds a `states_nigeria` dataset, and introduces `disambiguate_lga()` for the genuine domain problem of Local Government Area names shared across states — resolvable interactively by presenting the candidates. Also corrects LGA spellings inherited from a flawed reference document.
View source ↗ - 3y ago
Warning silenced ahead of the spatial stack migration
Suppresses a warning about end-of-life spatial dependencies while the real migration was being prepared. Groundwork for 0.6.0, no user-facing change.
View source ↗ - 3y ago
Package objects gain base R semantics; phone repair widened
Methods for `c()`, `[`, `[[` and `na.exclude` make the package's classes behave like ordinary R vectors rather than special cases. Phone-number repair grows to handle common separators and the classic O-for-zero data entry error, and choropleth creation from a two-column data frame gets simpler.
View source ↗