traitdataform

A package to manage and compile functional trait data into predefined templates

https://github.com/ecologicaltraitdata/traitdataform

Science Score: 33.0%

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

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

Keywords

dataset ecology harmonization r-package trait-datasets
Last synced: 6 months ago · JSON representation

Repository

A package to manage and compile functional trait data into predefined templates

Basic Info
Statistics
  • Stars: 32
  • Watchers: 6
  • Forks: 9
  • Open Issues: 13
  • Releases: 0
Topics
dataset ecology harmonization r-package trait-datasets
Created almost 9 years ago · Last pushed over 3 years ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Package 'traitdataform': Formatting and Harmonizing Ecological Trait-Data

lifecycle R-CMD-check Project Status: Active - The project has reached a stable, usable state and is being actively developed. CRAN status DOI

Assistance for handling functional trait data and transferring them into the Ecological Trait-Data Standard (Schneider et al. 2019 Towards an Ecological Trait-data Standard, Methods in Ecology and Evolution DOI: 10.1111/2041-210X.13288).

There are two major use cases for the package:

  • preparation of own trait datasets for upload into public data bases, and
  • harmonizing trait datasets from different sources by moulding them into a unified format.

The toolset of the package includes

  • transforming species-trait-matrix or occurrence table data into a unified long-table format
  • mapping column names into terms provided in a standard trait vocabulary
  • matching of species names into GBIF Backbone Taxonomy (taxonomic ontology server)
  • matching of trait names into a user-provided trait list, i.e. a thesaurus of traits
  • unifying trait values into target unit format and legit factor levels
  • saving trait dataset into a desired format using templates (e.g. for BExIS)

Installation

Install from CRAN via

r install.packages('traitdataform')

The development version of the package can be installed from Github via the 'devtools' package

r install.packages('devtools') devtools::install_github('EcologicalTraitData/traitdataform')

System requirements

The package requires the udunits library for unit conversion to be installed. It should install automatically, but if the package installation throws an error, it might need manual installation (see this thread for help).

Usage

```r

pulldata("carabids")

thesaurus <- as.thesaurus( bodylength = as.trait("bodylength", expectedUnit = "mm", identifier = "length" ), antennalength = as.trait("antennalength", expectedUnit = "mm", identifier = "antenna" ), metafemurlength = as.trait("metafemurlength", expectedUnit = "mm", identifier = "metafemur" ), eyewidth = as.trait("eyewidth_corr", expectedUnit = "mm", identifier = "eyewidth" ) )

traitdataset1 <- standardize(carabids, thesaurus = thesaurus, taxa = "name_correct", units = "mm" )

```

Documentation

A documentation is available online at http://ecologicaltraitdata.github.io/traitdataform/ or offline in the package vignette 'traitdataform'.

Datasets

The traitdataform package links to a couple of datasets, which are used for demo purposes in the vignette and documentation, but can be used for research and production use.

The datasets have been published by their authors under Creative Commons 0 or Creative Commons Attribution license, which means they can be copied, modified, distributed without asking permission. Attribution must be given according to the dataset license.

For additional information and interpretation of the data please refer to the help pages of the data objects (e.g. calling ?carabids in R) and the original data sources given therein.

If you want further data sources published under Creative Commons Licenses or in the public domain being added to this package, feel free to file a pull-request with a script for download and harmonization in the data/ directory and a documentation appended to R/data.R!

Contributing

The package invites any contributions e.g. minor fixes and spell-checks, improving interoperability with data and other packages or software for trait-data handling. Please see the Contributing Guidelines for details.

Please note that the 'traitdataform' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Future features

The package is under open source development. You are invited to submit pull-requests with your improvements.

We are aiming to provide the following features in future iterations of the package:

  • extracting trait definitions and hierarchies from semantic ontologies (e.g. from the OWL files or via APIs), to facilitate analysis of comparable traits across taxa.
  • automated matching of user-provided trait names against trait definitions in online resources, by looking up traits from published ontologies.
  • harmonization of levels of factorial traits via fuzzy matching (requires lookup tables and ontologies providing legit factor levels).
  • managing trait databases locally in R by managing relational data (e.g. on occurrence level or measurement level, sampling event, taxon etc.) in the data.frame attributes.

Cite as

Schneider, F.D. (2022) traitdataform - harmonizing ecological trait data in R, v0.6.8, DOI: 10.5281/zenodo.1489527 http://ecologicaltraitdata.github.io/traitdataform

License

Copyright (c) 2022 F.D. Schneider, florian.dirk.schneider@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Owner

  • Name: Special Interest Group on Ecological Trait Data
  • Login: EcologicalTraitData
  • Kind: organization
  • Location: GER

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 422
  • Total Committers: 5
  • Avg Commits per committer: 84.4
  • Development Distribution Score (DDS): 0.024
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Florian Schneider f****r@u****r 412
Florian Schneider f****r@g****m 4
Matthias Grenié m****e@e****r 3
trashbirdecology j****t@g****m 2
Iñaki Úcar i****r@f****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 2 years ago

All Time
  • Total issues: 40
  • Total pull requests: 7
  • Average time to close issues: 4 months
  • Average time to close pull requests: about 2 months
  • Total issue authors: 8
  • Total pull request authors: 6
  • Average comments per issue: 1.88
  • Average comments per pull request: 0.71
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • fdschneider (31)
  • RS-eco (2)
  • mikeroswell (2)
  • iimog (1)
  • rplewes (1)
  • trashbirdecology (1)
  • alexpiper (1)
  • Rekyt (1)
Pull Request Authors
  • Rekyt (2)
  • willgearty (1)
  • katrinleinweber (1)
  • trashbirdecology (1)
  • Enchufa2 (1)
  • caterinap (1)
Top Labels
Issue Labels
feature (6) taxonomy (3) help wanted (3) bug (3) enhancement (2) documentation (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 12
  • Total maintainers: 1
cran.r-project.org: traitdataform

Formatting and Harmonizing Ecological Trait-Data

  • Versions: 12
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Forks count: 8.3%
Stargazers count: 9.6%
Average: 20.8%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Last synced: about 2 years ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • RCurl * imports
  • XML * imports
  • curl * imports
  • data.table * imports
  • getPass * imports
  • plyr * imports
  • reshape2 * imports
  • stats * imports
  • suppdata * imports
  • taxize * imports
  • units * imports
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests