https://github.com/ropensci/traits
R package for accessing species trait data from multiple databases
https://github.com/ropensci/traits
api-client r r-package rstats species traits
Last synced: about 1 year ago
JSON representation
R package for accessing species trait data from multiple databases
- Host: GitHub
- URL: https://github.com/ropensci/traits
- Owner: ropensci
- License: other
- Created: 2014-04-09T20:21:13.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-04-10T19:35:29.000Z (over 1 year ago)
- Last Synced: 2025-06-03T00:28:40.792Z (about 1 year ago)
- Topics: api-client, r, r-package, rstats, species, traits
- Language: R
- Homepage:
- Size: 4.47 MB
- Stars: 41
- Watchers: 7
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Citation: CITATION.cff
- Codemeta: codemeta.json
Awesome Lists containing this project
- open-sustainable-technology - traits - R package for accessing species trait data from multiple databases. (Biosphere / Biodiversity Data Access and Management)
README
---
title: "traits: Species Trait Data from Around the Web"
output: github_document
---
traits
=======
```{r echo=FALSE}
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE,
warning = FALSE,
message = FALSE
)
```
[](https://github.com/ropensci/traits/actions/workflows/R-CMD-check.yaml)
[](https://github.com/r-hub/cranlogs.app)
[](https://CRAN.R-project.org/package=traits)
[](https://doi.org/10.5281/zenodo.11224037)
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_
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
```{r eval=FALSE}
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
```{r eval=FALSE}
install.packages("traits", repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))
remotes::install_github("ropensci/traits")
```
```{r}
library("traits")
library("dplyr")
```
## Contributors
* [Scott Chamberlain](https://github.com/sckott)
* [Zachary Foster](https://github.com/zachary-foster)
* [Ignasi Bartomeus](https://github.com/ibartomeus)
* [David LeBauer](https://github.com/dlebauer)
* [David Harris](https://github.com/davharris)
* [Chris Black](https://github.com/infotroph)
* [Rupert Collins](https://github.com/boopsboops)
## Meta
* Please [report any issues or bugs](https://github.com/ropensci/traits/issues).
* 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](https://ropensci.org/code-of-conduct/). By contributing to this project, you agree to abide by its terms.
[](https://ropensci.org)