Learn R Programming

naijR (version 0.3.2)

states: States of the Federal Republic of Nigeria

Description

States of the Federal Republic 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 regions print(x, ...)

# S3 method for regions head(x, ...)

# S3 method for regions tail(x, ...)

Arguments

states

One or more States of the Federation.

gpz

Geopolitical zone. Default is NULL; optionally "nc", "ne", "nw", "se", "ss" and "sw" (see "Details").

all

logical; whether to include the Federal Capital Territory in the result.

warn

logical; issue a warning when one or more elements are not actually States (or were misspelt).

x

The object of class region

...

Arguments to tail.default

Value

The States of Nigeria as a whole or by zones, as an S3 object of class states.

Details

gpz A geo-political zone, in the Nigerian context, is a national subdivision that groups contiguous states. Historically, they arise from subnational administrative divisions known as 'regions' that existed at the time of the country's independence. There are 6 zones - North-Central, North-East, North-West, South-East, South-South and South-West.

Examples

Run this code
# NOT RUN {
states()  # lists names of all States
states(gpz = "se")  # lists States in South-East zone
# }

Run the code above in your browser using DataLab