Learn R Programming

letsR (version 1.0)

lets.iucn.ha: Download habitat information for species from IUCN

Description

Get species' habitat information from IUCN website(http//:http://www.iucnedlist.org/) for one or more species.

Usage

lets.iucn.ha(input, count=FALSE)

Arguments

input
Character vector with one or more species names, or an object of the PresenceAbsence class.
count
Logical, if TRUE a counting window will open.

Value

  • A data frame with species names in the first column and the habitats in the remaining columns, '1' if species is present in that habitat and '0' otherwise.

Details

Note that you must be connected to the internet to use this function.

See Also

lets.iucn lets.iucn.his

Examples

Run this code
# Single species
lets.iucn.ha("Pongo pygmaeus")

# Multiple species
lets.iucn.ha(c("Musonycteris harrisoni", "Ailuropoda melanoleuca", "Cebus flavius"))

Run the code above in your browser using DataLab