states {naijR} | R Documentation |
Create an Object for the States of Nigeria
Description
Create an Object for the States of Nigeria
Print regions
Return the First or Last Parts of a Region Object
Usage
states(states, gpz = NULL, all = TRUE, warn = TRUE)
## S3 method for class 'regions'
print(x, ...)
## S3 method for class 'regions'
head(x, ...)
## S3 method for class 'regions'
tail(x, ...)
Arguments
states |
A character vector with strings representing one or more
States of Nigeria. If missing, the function will return a |
gpz |
|
all |
logical; whether to include the FCT in the result. |
warn |
logical; issue a warning when one or more elements are not actually States (i.e. they were misspelt). |
x |
The object of class |
... |
Arguments to |
Details
gpz
represents a geopolitical zone which, in the Nigerian
context, is a national subdivision that groups contiguous states that bear
certain socio-cultural and political similarities. Historically, they arise
from sub-national administrative divisions known as 'Regions' that existed
at the time of the country's independence. There are at present 6 such
zones - North-Central, North-East, North-West, South-East,South-South and
South-West.
Value
The States of Nigeria as a whole or by zones, as an S3 object
of class states
.
Examples
states() # lists names of all States
states(gpz = "se") # lists States in South-East zone