Nothing
states_nigeria
for the States of Nigeria.{sf}
package is now the main dependency.map_ng
gained a newly documented argument plot
, which hitherto was passed internally to maps::map()
via ...
.disambiguate_lga
, which takes a single-element lgas
object for handling the names of Local Government Areas that are shared between separate States. This function enables the (re)setting of the State
attribute of such objects; this can be done interactively, where the replicated States' names are presented for selection by users.fix_region
, the lgas
constructor function does not warn if there are spelling mistakes, as this turned out to be a bit confusing when it was used. In earlier versions, warnings persisted even after fixes were applied.cex
argument (passed on to maps::map.text
internally, via ...
).?InternalGenerics
were introduced e.g. for c()
, [
, [[
, na.exclude
, etc.0
s) with the letter O
(works for both upper and lower case).regions
.legend.text
for map_ng
using an idiom that is similar to the one used in base::barplot
, thanks to observations made by @VictoriaLatham in issue #27.map_ng
accepted arguments that were not data.frame
s leading to unwieldy errors. It is now made sure to fail early in such casesmap_ng
- leg.x
, leg.y
, and leg.orient
were marked for deprecation in the next minor release.fix_mobile
fails unexpectedly when only NA
is supplied as argument. This causes practical problems when, for example, it encounters a column with only missing values.states
and lgas
objects.lgas
objects in the event that the argument provided is the name of an LGA that is synonymous with it's State (argument strict
).head
and tail
to work with objects that inherit from class regions
.states
and lgas
gain a logical argument warn
to control whether or not they issue a warning when an input string does not contain an actual State/LGA.naijR::lgas()
was producing an error.fix_region
.is_lga
, which checks an object for Local Government Areas.is_state
when the object checked is not of type character
.is_state
when it is called internally by package function; displayed only when function is called directly.NEWS.md
file to track changes to the package.is_state
so it can be used more effectively for functional programming constructs.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.