Skip to contents

Load and download shapefile

Usage

load_shapefile(
  country,
  admin_level = c(0, 1, 2),
  quiet = T,
  download = F,
  destfile = "."
)

Arguments

country

Name of country

admin_level

Numeric value either 0, 1, or 2.

quiet

sf parameter to choose if shapefile info is printed

download

TRUE/FALSE should the GeoJSON be downloaded?

destfile

Path to output directory

Value

A sf-object