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:
betydb\_
NCBI
ncbi\_
Encyclopedia of Life
traitbank\_
Birdlife International
birdlife\_
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.
CRAN
install.packages("traits")
R-Universe (alternative)
install.packages(
"traits",
repos = c("https://ropensci.r-universe.dev", "https://cloud.r-project.org")
)
Development version from GitHub
remotes::install_github("ropensci/traits")
library("traits")
library("dplyr")
traits in R doing
citation(package = 'traits')Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.