country_stats: Get country statistics

View source: R/country.R

country_statsR Documentation

Get country statistics

Description

Returns the country core statistics associated to the amount of PAs in different IUCN categories.

Usage

country_stats(country, cache = FALSE)

Arguments

country

Character country name or numeric country code.

cache

Sets the cache mode: TRUE = Use cache if available and save to cache, FALSE = Ignore cache if available and do not save to cache, "flush" = Ignore cache if available and save to cache.

Details

If a country has no area designated to a particulart IUCN category, The DOPA API will leave the category out of the response. country_stats() returns all categories, populationg non-existant with NAs.

Value

A data.frame of country PA statistics. Each PA has the following information associated to it:

category IThe category for the iucn protection level
area_protected The protected area of the country
area_protected_perc The protected area percentage of the country
area_total The total area of the country
countryiso The ISO numeric code of the country
name The name of the country
iucn_cat The numeric id for the iucn protection level

Author(s)

Joona Lehtomaki <joona.lehtomaki@gmail.com>

See Also

http://dopa-services.jrc.ec.europa.eu/services/ibex/ehabitat/get_country_stats_all

resolve_country

Examples

## Not run: 
# Get PA statistics for Sweden
country_stats(country="Sweden")

## End(Not run)

ropensci/rdopa documentation built on May 18, 2022, 6:32 p.m.