hdx_resource_shapefile: Download and load shapefiles as simple features

Description Usage Arguments Examples

Description

Humanitarian data exchange stores it's shapefiles as zipped files This function takes the results of the hdx_dataset_search, after being expanded by hdx_resource_list function, and downloads the first shapefile to the working directory. It will create a new folder with the name of the shapefile, and unzip the shapefiles into it. It will then load the first shapefile from this directory into the environment, in simple features format.

Usage

1

Arguments

resources

Results of hdx_resource_list

Examples

1
2
3
dataset <- hdx_dataset_search()
resources <- hdx_resource_list(dataset)
shapefile <- hdx_resource_shapefile(resources)

callumgwtaylor/hdxr documentation built on May 14, 2019, 9:22 p.m.