Skip to content

R package for accessing species trait data from multiple databases

License

Notifications You must be signed in to change notification settings

ropensci/traits

Repository files navigation

traits: Species Trait Data from Around the Web

traits

R-CMD-check rstudio mirror downloads cran version DOI

R client for various sources of species trait data.

Docs: https://docs.ropensci.org/traits/

What is a trait? A “trait” for the purposes of this package is broadly defined as an aspect of a species that can be described or measured, such as physical traits (size, length, height, color), behavioral traits (running speed, etc.), and even variables that make up the niche of the species (e.g., habitat).

Included in traits with the associated function prefix or function name:

Souce

Function prefix

Link

BETYdb

betydb_

https://www.betydb.org/

NCBI

ncbi_

https://www.ncbi.nlm.nih.gov/

Encylopedia of Life

traitbank_

https://github.com/EOL/publishing/blob/master/doc/api.md

Birdlife International

birdlife_

https://www.birdlife.org/

LEDA Traitbase

leda_

Zanne et al. plant dataset

tr_zanne

Amniote life history dataset

tr_ernest

Talk to us on the issues page (https://github.com/ropensci/traits/issues) if you know of a source of traits data with an API, and we’ll see about including it.

Installation

Stable R-Universe version

install.packages("traits", repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

_Note: traits has been removed from CRAN pending https://github.com/ropensci/taxize/issues/938_

Or development version from GitHub

install.packages("traits", repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org')) 
remotes::install_github("ropensci/traits")
library("traits")
library("dplyr")

Contributors

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for traits in R doing citation(package = 'traits')
  • Please note that this package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

ropensci_footer