getadm: Load administrative area boundaries

Description Usage Arguments Details Value Author(s)

Description

Requires that the GADM RDS files or shapefiles exist in a path specified in either the environment variable GISpath or in the function parameter path. Tries to load first the RDS file and secondarily the shp file. If RDS file does not exist, it will convert the shp into RDS and write to disk.

Usage

1
getadm(level = 0, path = Sys.getenv("GISpath"))

Arguments

level

The level of admin boundaries to load.

path

Path to the file

Details

The required files can be downloaded from https://gadm.org/

Value

SpatialPolygonsDataFrame

Author(s)

Lauri Myllyvirta lauri.myllyvirta@greenpeace.org


laurimyllyvirta/lauR documentation built on April 28, 2021, 6:26 p.m.