wdpa_url | R Documentation |
Obtain a URL to download data from Protected Planet. Specifically, the URL provides access to data available through the World Database on Protected Areas (WDPA) and the World Database on Other Effective Area-Based Conservation Measures (WDOECM). Note that data are accessed assuming non-commercial use.
wdpa_url(x, wait = FALSE, page_wait = 2, datatype = "gdb")
x |
|
wait |
|
page_wait |
|
datatype |
|
A character
value with the URL to download the data.
wdpa_fetch()
, countrycode::countrycode()
.
## Not run:
# obtain url for New Zealand data
nzl_url <- wdpa_url("New Zealand", wait = TRUE)
print(nzl_url)
# obtain url for New Zealand data using its ISO3 code
nzl_url <- wdpa_url("NZL", wait = TRUE)
print(nzl_url)
# obtain url for global data
global_url <- wdpa_url("global")
print(global_url)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.