maxadmin: return max admin level for a country

Description Usage Arguments Details Value Examples

View source: R/maxadmin.r

Description

initialy gadm but could be other sources too

Usage

1
maxadmin(country, datasource = "geoboundaries")

Arguments

country

a character vector of country names

datasource

data source, initial default 'gadm'

Details

#todo change this to work on downloads (or save a table) #todo add geoboundaries option #todo vectorise

Value

integer vector of max admin levels

Examples

1
maxlevel <- maxadmin("nigeria", datasource='geoboundaries')

afrimapr/afriadmin documentation built on Dec. 15, 2021, 2:35 p.m.