Description Usage Arguments Value Author(s) Examples
View source: R/pref_hab_function.R
Obtains the habitat preference of species in IUCN's database and put in the
format required to the function aoh
, based on the classification scheme of
the user's land use map. The habitat preference is obtained through the
rredlist
package
1 2 3 4 5 |
sp |
a vector containing the names or IUCN's IDs of the species. |
key |
A IUCN API token. You can request a key in the website http://apiv3.iucnredlist.org/api/v3/token |
cat |
a two columns data frame. The first column must have the codes
from IUCN's Habitats Classification Scheme (Version 3.1). The second column
must have the numeric code of the user's land use map that is equivalent to
the IUCN's Habitats Classification Scheme. When there is no land use equivalent
to the IUCN's classification, use the value 0. If no data frame is provided the
function uses the dataset obtained through |
suitability |
a vector specifying which levels of habitat suitability must be considered. |
mi |
(logical) only suitable habitats of major importance must be included? |
season |
a vector specifying which seasons of habitat importance must be considered. |
progress |
(logical) a bar showing the progress of the function. |
prefHab
returns a data frame in which the first column is the
name of the species and the posterior columns are the codes of the user's
classification scheme. 1 indicates that the species has preference for a
given class of land use while 0 indicates that it has not.
Daniel Gonçalves-Souza & Thaís Dória
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.