An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

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
)
```

[![R-CMD-check](https://github.com/ropensci/traits/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/traits/actions/workflows/R-CMD-check.yaml)
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/traits)](https://github.com/r-hub/cranlogs.app)
[![cran version](https://www.r-pkg.org/badges/version/traits)](https://CRAN.R-project.org/package=traits)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11224037.svg)](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.

[![ropensci_footer](https://ropensci.org/public_images/github_footer.png)](https://ropensci.org)