listNames: List the region names for a specific administrative level

Description Usage Arguments Details Value Author(s) Examples

View source: R/10_gadm_sp_core.R

Description

Returns a list of the names associated with the particular administration level.

Usage

1
listNames(x, level = 0)

Arguments

x

Object - gadm_sf or gadm_sp

level

Integer - the value of the administration level to list. Attention: only the administrative levels that have been loaded in the loadCountries object can be listed. Names are given in the country's language or English.

Details

Some GADM country maps provide five or more administrative levels.

Value

Character vector of names

Author(s)

Jean Pierre Decorps <jp.decorps@epiconcept.fr>

Examples

1
2
3
4
library(GADMTools)
data("Corsica")
listNames(Corsica, level=3)
listNames(Corsica, level=4)

GADMTools documentation built on Aug. 5, 2021, 1:06 a.m.