traits (version 0.1.0)

coral: Search for coral data on coraltraits.org

Description

Search for coral data on coraltraits.org

Usage

coral_taxa(taxon, taxonomy = FALSE, contextual = TRUE, global = FALSE,
  ...)

coral_traits(trait, taxonomy = FALSE, contextual = TRUE, global = FALSE, ...)

coral_locations(location, taxonomy = FALSE, contextual = TRUE, global = FALSE, ...)

coral_methodologies(methodology, taxonomy = FALSE, contextual = TRUE, global = FALSE, ...)

coral_resources(resource, taxonomy = FALSE, contextual = TRUE, global = FALSE, ...)

coral_species(...)

Arguments

taxon
A taxon id
taxonomy
logical; Include contextual data. Default: FALSE
contextual
logical; Include contextual data. Default: TRUE
global
logical; Include contextual data. Default: FALSE
...
Curl options passed on to GET
trait
A trait id
location
A location id
methodology
A methodology id
resource
A resource id

References

http://coraltraits.org/

Examples

Run this code
# Get the species and their Ids
head( coral_species() )

# Get data by taxon
coral_taxa(80)

# Get data by trait
coral_traits(105)

# Get data by methodology
coral_methodologies(2)

# Get data by location
coral_locations(132)

# Get data by resource
coral_resources(10)

# curl options
library("httr")
coral_taxa(80, config=verbose())

Run the code above in your browser using DataCamp Workspace