get_shapefile: download zipped shapefile and read shapefile.

View source: R/miscellaneous.R

get_shapefileR Documentation

download zipped shapefile and read shapefile.

Description

download zipped shapefile and read shapefile.

Usage

get_shapefile(path, file_mask = NA, cache_path = NULL, refresh = FALSE)

Arguments

path

URL string to zipped shape file

file_mask

optional grep string in case there are several shape files in the package

cache_path

optional path where to cache the shapefiles

refresh

optional, re-downloads shape file data if set to TRUE

Value

an sf object with the data from the shape file


mountainMath/mountainmathHelpers documentation built on May 3, 2024, 5:55 p.m.