unzipShapefiles: unzipShapefiles

Description Usage Arguments Value Examples

View source: R/unzipShapefiles.R

Description

Unzips compressed files containing ESRI shapefiles from the 'data-raw' folder of the OFPEDATA package. Takes a zipped file name and path to data and checks if there are any shapefiles in the zipped object and if so, returns a 'sf' object.

Usage

1
unzipShapefiles(zip_file, path)

Arguments

zip_file

Character, the name of the zipped file to extract.

path

Character, path to the folder with the data.

Value

A shapefile of class 'sf'.

Examples

1
2
3
4
## Not run: 
unzipShapefiles("zipped_data_filename", "path/to/data")

## End(Not run)

paulhegedus/OFPEDATA documentation built on Sept. 20, 2020, 4:57 a.m.