getWDPACountry: Get the data available for a country in the...

Description Usage Arguments Examples

Description

This function returns the data for a country in the ProtectedPlanet database. The country is identified by its ISO code, which can be obtained using the function getWDPACountries().

Usage

1
getWDPACountry(country_iso, with_geometry = TRUE, filename = NA, api_key)

Arguments

country_iso

The ISO code for the country to search for

with_geometry

Boolean to return the geometry of the country

filename

If with_geometry is TRUE, the filename to use when saving the geometry to a GeoJSON file. By default, the filename is the ISO (e.g. USA.geojson)

api_key

ProtectedPlanet.net API key

Examples

1
2
3
4
## Not run: 
regions <- getWDPACountry(country_iso = 'USA', api_key='xxxxxxxxxxx')

## End(Not run)

ljvillanueva/rWDPA documentation built on May 21, 2019, 7:33 a.m.