A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

austraits

R package for accessing the AusTraits Plant database, an open-source, harmonized database of Australian plant trait data.
https://github.com/traitecoevo/austraits

Category: Biosphere
Sub Category: Plants and Vegetation

Keywords

australia database plants traits

Last synced: about 24 hours ago
JSON representation

Repository metadata

R package for accessing the AusTraits Plant database and working with traits.build databases

README.Rmd

          ---
output: github_document
editor_options: 
  chunk_output_type: console
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%",
  message = FALSE,
  warning = FALSE
)

library(austraits) 
library(stringr)
library(dplyr)
```


# austraits 


[![R-CMD-check](https://github.com/traitecoevo/austraits/actions/workflows/R-CMD-check.yml/badge.svg)](https://github.com/traitecoevo/austraits/actions/workflows/R-CMD-check.yml)
[![codecov](https://codecov.io/gh/traitecoevo/austraits/branch/master/graph/badge.svg?token=JT1M0AMZ44)](https://codecov.io/gh/traitecoevo/austraits)
[![](https://img.shields.io/badge/doi-10.1038/s41597--021--01006--6-blue.svg)](https://doi.org/10.1038/s41597-021-01006-6)
[![](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![Codecov test coverage](https://codecov.io/gh/traitecoevo/austraits/branch/master/graph/badge.svg)](https://app.codecov.io/gh/traitecoevo/austraits?branch=master)


`austraits` allow users to **access, explore and wrangle data** from [traits.build](https://github.com/traitecoevo/traits.build) relational databases. It is also an R interface to [AusTraits](https://austraits.org/), the Australian plant trait database. This package contains functions for joining data from various tables, filtering to specific records, combining multiple databases and visualising the distribution of the data. We expect this package will assist users in working with `traits.build` databases.

### Installation

This package is not on CRAN yet and is still under active development. For the current stable release of `austraits`, which has full capabilities of the functions used in vignettes (e.g. plotting functions), use: 

```{r setup, results = 'hide', eval = FALSE}
#install.packages("remotes")
remotes::install_github("traitecoevo/austraits", dependencies = TRUE, upgrade = "ask")

library(austraits) 
```

For a lightweight installation where dependencies for plotting and producing the vignettes will not be installed, use:

```{r light, results = 'hide', eval = FALSE}
remotes::install_github("traitecoevo/austraits", upgrade = "ask")
```

### Details for AusTraits users

#### Retrieve AusTraits data

- **For R users**, the AusTraits database can be accessed through the `austraits` package using `load_austraits()`

- **For Python or other users**, the [Zenodo download](https://zenodo.org/record/5112001#collapseTwo) includes a `.zip` file containing all the data in plain text (`.csv` files) and associated meta-data 

#### Backwards compatibility with past AusTraits versions

From September 2024, `austraits` functions were revamped to support all [traits.build](https://github.com/traitecoevo/traits.build) compiled databases, rather than being linked to [austraits.build](https://github.com/traitecoevo/austraits.build).

Versions of `austraits.build` (the AusTraits plant trait database) **< 5.0 are no longer supported** by the latest version of the package. If you are working with an older version of AusTraits, please install an older version of austraits:

For `austraits.build` versions 4.2 and older: 

```{r backwards, results = 'hide', eval = FALSE}
#install.packages("remotes")
remotes::install_github("traitecoevo/[email protected]", dependencies = TRUE, upgrade = "ask")

library(austraits)
```

Note, if you are unsure what version of AusTraits you are working with, run:

```{r version, results = 'hide', eval = FALSE}
austraits$build_info$version
```

### Getting started  `r emo::ji("eyes")`

We highly recommend taking a look at our [Getting Started tutorial](https://traitecoevo.github.io/austraits/) on our website before jumping into the `austraits` R package!

If you prefer to view this vignette in R, we recommend installing the package with `build_vignettes = TRUE`. 

```{r, eval = FALSE}
remotes::install_github("traitecoevo/austraits", 
                        dependencies = TRUE, upgrade = "ask", 
                        build_vignettes = TRUE)

vignette("austraits")
```

### Cheat sheet



### Learn more about AusTraits

AusTraits is a relational database, you can learn more about it's structure from the [traits.build book](https://traitecoevo.github.io/traits.build-book/AusTraits_tutorial.html).  

You can also learn about the definitions of each plant trait with the [AusTraits Plant Dictionary!](https://w3id.org/APD)

### Show us some support `r emo::ji("green heart")`

Please consider citing `austraits`, we would super appreciate it! 

```{r}
citation("austraits")
```

### Behind the scenes `r emo::ji("spanner")`

Check out [austraits.build](https://github.com/traitecoevo/austraits.build?tab=readme-ov-file), if you are interested in how AusTraits the database is managed and created

### Find a bug? `r emo::ji("bug")`

Thank you for finding it! Head over to the GitHub Issues tab and let us know about it! We will try to get to it as soon as we can! 



        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 365
Total Committers: 7
Avg Commits per committer: 52.143
Development Distribution Score (DDS): 0.055

Commits in past year: 4
Committers in past year: 2
Avg Commits per committer in past year: 2.0
Development Distribution Score (DDS) in past year: 0.25

Name Email Commits
Fonti Kar f****r@u****u 345
Daniel Falster d****r@u****u 15
Dony Indiarto d****o@s****u 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 97
Total pull requests: 63
Average time to close issues: 4 months
Average time to close pull requests: 3 days
Total issue authors: 14
Total pull request authors: 4
Average comments per issue: 2.47
Average comments per pull request: 0.92
Merged pull request: 50
Bot issues: 0
Bot pull requests: 0

Past year issues: 31
Past year pull requests: 39
Past year average time to close issues: 14 days
Past year average time to close pull requests: about 17 hours
Past year issue authors: 3
Past year pull request authors: 4
Past year average comments per issue: 1.16
Past year average comments per pull request: 0.23
Past year merged pull request: 30
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/traitecoevo/austraits

Top Issue Authors

  • fontikar (60)
  • ehwenk (12)
  • dfalster (7)
  • yangsophieee (3)
  • rubysaltbush (2)
  • edanweis (2)
  • wcornwell (2)
  • dcol2804 (2)
  • bmedlyn (2)
  • jrfep (1)
  • itowers1 (1)
  • Rekyt (1)
  • daxkellie (1)
  • alexskeels (1)

Top Pull Request Authors

  • fontikar (30)
  • ehwenk (22)
  • dfalster (9)
  • Rekyt (2)

Top Issue Labels

  • coming soon! 👀 (27)
  • enhancement ✨ (14)
  • bug 🐛 (12)
  • documentation 📝 (7)
  • question 🙋 (2)
  • good first issue 🐾 (1)

Top Pull Request Labels


Dependencies

.github/workflows/R-CMD-check.yml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/pkgdown_deploy.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/test-coverage.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
DESCRIPTION cran
  • R >= 4.0.0 depends
  • RefManageR * depends
  • assertthat * imports
  • dplyr * imports
  • janitor * imports
  • jsonlite * imports
  • lifecycle * imports
  • magrittr * imports
  • purrr * imports
  • rlang * imports
  • stats * imports
  • stringr * imports
  • tidyr * imports
  • tidyselect * imports
  • utils * imports
  • forcats * suggests
  • ggbeeswarm * suggests
  • ggplot2 * suggests
  • ggpointdensity * suggests
  • gridExtra * suggests
  • kableExtra * suggests
  • knitr * suggests
  • markdown * suggests
  • rmarkdown * suggests
  • scales * suggests
  • testthat >= 3.0.0 suggests
  • viridis * suggests

Score: 5.37989735354046