gadm: Administrative boundaries

View source: R/gadm.R

gadmR Documentation

Administrative boundaries

Description

Get administrative boundaries for any country in the world. Data are read from files that are downloaded if necessary.

Usage

gadm(country, level=1, path, version="latest", resolution=1, ...)

Arguments

country

character. Three-letter ISO code or full country name. If you provide multiple names they are all downloaded and rbind-ed together

level

numeric. The level of administrative subdivision requested. (starting with 0 for country, then 1 for the first level of subdivision)

path

character. Path name indicating where to store the data

version

character. Either "latest" or GADM version number (can be "3.6", "4.0" or "4.1")

resolution

integer indicating the level of detail. Only for version 4.1. It should be either 1 (high) or 2 (low)

...

additional arguments passed to download.file

Details

The data are from https://gadm.org

Value

SpatVector

See Also

world

Examples


fra <- gadm(country="FRA", level=1, path=tempdir())


geodata documentation built on Dec. 1, 2022, 5:12 p.m.