Description Usage Arguments Examples
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.
1 | hdx_resource_shapefile(resources)
|
resources |
Results of hdx_resource_list |
1 2 3 | dataset <- hdx_dataset_search()
resources <- hdx_resource_list(dataset)
shapefile <- hdx_resource_shapefile(resources)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.