country_species_count: Get species count for a country

View source: R/country.R

country_species_countR Documentation

Get species count for a country

Description

Returns a count of the species whose range intersects with the country. This intersection on the species range includes the Exclusive Economic Zone boundary for the country which extends out to 200 nautical miles from the coastline. The EEZ boundary was derived from the Flanders Marine Institute (see http://www.vliz.be/vmdcdata/marbound/ for more information).

Usage

country_species_count(country, rlstatus = NULL, cache = TRUE)

Arguments

country

Character country name or numeric country code.

rlstatus

A character vector of the IUCN Conservation Status for the species. Default is NULL in which case species of all statuses are requested.

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

For more information see http://www.iucnredlist.org/technical-documents/categories-and-criteria.

Value

Numeric count of the species whose range intersects with the country.

Author(s)

Joona Lehtomaki <joona.lehtomaki@gmail.com>

See Also

http://dopa-services.jrc.ec.europa.eu/services/dopa/especies/get_country_species_count

resolve_country check_iucn_status

Examples

## Not run: 

# Using country name
country_species_count(country="Finland")
  
# Using country code (156 is China)
country_species_count(country=156)

# Get only critically endangered and endangered species
country_species_count(country=156, rlstatus=c("CR", "EN"))
 

## End(Not run)

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