Description Usage Arguments Details Value
View source: R/url_shp_to_spdf.R
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.
1 | url_shp_to_spdf(URL)
|
URL |
A single URL or a vector of URLs |
Source of function: Kay Cichini (https://www.r-bloggers.com/batch-downloading-zipped-shapefiles-with-r/)
Author: Ian (imcgreg [at] ncsu [dot] edu)
A spatialp___dataframe from the desired shapefile is loaded to the global environment.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.