Learn R Programming

mongolstats (version 0.1.1)

mn_boundaries: Mongolia administrative boundaries (sf)

Description

Downloads Mongolia boundaries for ADM0/ADM1/ADM2 from the GeoBoundaries API and returns an sf object. Results can be cached by the caller as needed.

Usage

mn_boundaries(level = c("ADM0", "ADM1", "ADM2"))

Value

An sf object with polygons for the requested level.

Arguments

level

One of "ADM0", "ADM1", "ADM2".

Examples

Run this code
# Get aimag (province) boundaries
aimags <- mn_boundaries("ADM1")
head(aimags)

Run the code above in your browser using DataLab