List Local Government Areas

lgas(region = NA_character_)

lgas_ng(state = NA_character_)

Arguments

region

Character; State(s) in the Federation of Nigeria. Default is NA_character_.

state

Character; State(s) in the Federation of Nigeria. Default is NA_character_.

Value

If length of ng.state == 1L, a character vector containing the names of Local Government Areas; otherwise a named list whose elements are character vectors of the LGAs in each state.

Note

lga_ng stands deprecated and will be removed in the next minor version. New code should use lgas instead.

Examples

how_many_lgas <- function(state) { require(naijR) stopifnot(all(is_state(state))) cat(sprintf("No. of LGAs in %s State:", state), length(lgas(state)), fill = TRUE) } how_many_lgas("Sokoto")
#> No. of LGAs in Sokoto State: 23
how_many_lgas("Ekiti")
#> No. of LGAs in Ekiti State: 16