Giter VIP home page Giter VIP logo

biomonitor's Introduction

biomonitoR

A package for managing taxonomic and functional information and for calculating indices for biomonitoring of running waters, with a focus on the macroinvertebrate community.

codecov Build Status

Installation

# install the devtools package and then
# The devtools package requires and updated version of Rtools.
library(devtools)

install_github("alexology/biomonitoR", ref = "main", build_vignettes = TRUE)

To install the newest version:

# install the devtools package and then
library(devtools)

install_github("alexology/biomonitoR", ref = "develop", build_vignettes = TRUE)

To install old and deprecated version:

# install the devtools package and then
library(devtools)

install_github("alexology/biomonitoR", ref = "old_version")

Basic usage

library(biomonitoR)

# load example dataset. biomonitoR package needs a dataset with taxa names in the first column called "Taxa" and samples on the columns. Take a look to macro_ex for an example:

data(macro_ex)

# Prepare data for the analysis.

data_bio <- as_biomonitor(macro_ex)
data_agr <- aggregate_taxa(data_bio)

# calculate genus and family richness
richness(data_agr, tax_lev = "Genus")
richness(data_agr, tax_lev = "Family")

# calculate shannon index
shannon(data_agr, tax_lev = "Family")

# calculate italian bmwp and aspt
bmwp(data_agr, method = "ita", agg = TRUE)
aspt(data_agr, method = "ita", agg = TRUE)

# calculate iberian bmwp and aspt
bmwp(data_agr, method = "spa")
aspt(data_agr, method = "spa")

Vignettes

To have some more information on how to use biomonitoR take a look to the vignettes:

# import data in biomonitoR
vignette("introduction", package = "biomonitoR")

# trait-based analysis
vignette("functional", package = "biomonitoR")

Acknowledgments

This package is based upon work from COST Action CA15113 (SMIRES, Science and Management of Intermittent Rivers and Ephemeral Streams,www.smires.eu), supported by COST (European Cooperation in Science and Technology).

References

Reference database is from freshwaterecology.info.

Schmidt-Kloiber, A. & Hering D. (2015): www.freshwaterecology.info - an online tool that unifies, standardises and codifies more than 20,000 European freshwater organisms and their ecological preferences. Ecological Indicators 53: 271-282. doi: 10.1016/j.ecolind.2015.02.007

biomonitor's People

Contributors

alexology avatar cedricmondy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.