url_shp_to_spdf: Mass download zipped .shp files from URL

Description Usage Arguments Details Value

View source: R/url_shp_to_spdf.R

Description

The function allows you to download shapefile zip files into a temporary folder and directory, which are then unzipped and ready to use in R. Temp folders are automatically unlinked (deleted) and the working directory is set back to original within every iteration of the function. This means no shapefiles are stored to the drive.

Usage

1

Arguments

URL

A single URL or a vector of URLs

Details

Source of function: Kay Cichini (https://www.r-bloggers.com/batch-downloading-zipped-shapefiles-with-r/)

Author: Ian (imcgreg [at] ncsu [dot] edu)

Value

A spatialp___dataframe from the desired shapefile is loaded to the global environment.


mcgregorian1/cgaR documentation built on Dec. 8, 2019, 1:45 p.m.