traitbank: Search for traits from EOL's Traitbank.

Description Usage Arguments Details Author(s) References Examples

View source: R/traitbank.R

Description

Search for traits from EOL's Traitbank.

Usage

1
traitbank(pageid, cache_ttl = NULL, ...)

Arguments

pageid

A page id. I know, not ideal. Would be better if this was a trait id or trait name. This is the page ID for a taxon, not a trait. Apparently, traits don't have pages. Note: this parameter used to be trait, but badly mis-represented what the input actually represents.

cache_ttl

Cache code

...

Curl options passed on to GET

Details

See http://eol.org/data_glossary for human readable definitions for the attribute terms that EOL uses. Go to http://eol.org/data_search for the web interface to Traitbank.

Author(s)

Scott Chamberlain [email protected]

References

http://eol.org/info/516

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Get data for Balaenoptera musculus (http://eol.org/pages/328574/)
res <- traitbank(328574)
res$context
names( res$graph )
head( res$graph )

# Get data for Closterocerus formosus (http://eol.org/pages/846827/)
traitbank(846827)

## End(Not run)

traits documentation built on Sept. 23, 2017, 1:07 a.m.