austraits

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

https://github.com/traitecoevo/austraits

Science Score: 59.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    4 of 9 committers (44.4%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.7%) to scientific vocabulary

Keywords

australia database plants traits
Last synced: 6 months ago · JSON representation

Repository

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

Basic Info
Statistics
  • Stars: 23
  • Watchers: 9
  • Forks: 3
  • Open Issues: 6
  • Releases: 5
Topics
australia database plants traits
Created almost 5 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License

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/austraits@v2.2.2", 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/articles/austraits.html) 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

  • Name: Trait Ecology and Evolution
  • Login: traitecoevo
  • Kind: organization
  • Location: Australia

GitHub Events

Total
  • Create event: 31
  • Release event: 1
  • Issues event: 53
  • Watch event: 4
  • Delete event: 32
  • Issue comment event: 39
  • Push event: 155
  • Pull request review event: 50
  • Pull request review comment event: 27
  • Pull request event: 68
  • Fork event: 2
Last Year
  • Create event: 31
  • Release event: 1
  • Issues event: 53
  • Watch event: 4
  • Delete event: 32
  • Issue comment event: 39
  • Push event: 155
  • Pull request review event: 50
  • Pull request review comment event: 27
  • Pull request event: 68
  • Fork event: 2

Committers

Last synced: 6 months ago

All Time
  • Total Commits: 438
  • Total Committers: 9
  • Avg Commits per committer: 48.667
  • Development Distribution Score (DDS): 0.121
Past Year
  • Commits: 48
  • Committers: 4
  • Avg Commits per committer: 12.0
  • Development Distribution Score (DDS): 0.542
Top Committers
Name Email Commits
Fonti Kar f****r@u****u 385
Daniel Falster d****r@u****u 25
Elizabeth Wenk e****k@g****m 22
Matthias Grenié m****e@u****r 1
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 (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 98
  • Total pull requests: 77
  • Average time to close issues: 5 months
  • Average time to close pull requests: 4 days
  • Total issue authors: 15
  • Total pull request authors: 4
  • Average comments per issue: 2.54
  • Average comments per pull request: 0.77
  • Merged pull requests: 59
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 32
  • Pull requests: 53
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 3 days
  • Issue authors: 4
  • Pull request authors: 4
  • Average comments per issue: 1.41
  • Average comments per pull request: 0.19
  • Merged pull requests: 39
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • fontikar (61)
  • ehwenk (13)
  • dfalster (7)
  • yangsophieee (3)
  • rubysaltbush (2)
  • edanweis (2)
  • wcornwell (2)
  • dcol2804 (2)
  • bmedlyn (2)
  • jrfep (1)
  • itowers1 (1)
  • barb-muhling-spectrum (1)
  • Rekyt (1)
  • daxkellie (1)
  • alexskeels (1)
Pull Request Authors
  • ehwenk (50)
  • fontikar (40)
  • dfalster (10)
  • Rekyt (4)
Top Labels
Issue Labels
coming soon! 👀 (27) enhancement ✨ (15) bug 🐛 (12) documentation 📝 (8) question 🙋 (2) good first issue 🐾 (1)
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