View source: R/lets_iucn_habitats.R
lets.iucn.ha | R Documentation |
Get species' habitat information from the IUCN RedList website(https://www.iucnredlist.org/) for one or more species.
lets.iucn.ha(input, count = FALSE)
input |
Character vector with one or more species names,
or an object of the |
count |
Logical, if |
Note that you must be connected to the internet to use this function.
A data frame with species names in the first column and the habitats where it occurs in the remaining columns, '1' if species is present in that habitat and '0' otherwise.
Bruno Vilela
lets.iucn
lets.iucn.his
## Not run:
# Single species
lets.iucn.ha("Pongo pygmaeus")
# Multiple species
sp <- c("Musonycteris harrisoni", "Ailuropoda melanoleuca",
"Cebus flavius")
lets.iucn.ha(sp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.