Learn R Programming

metrix (version 1.1.0)

comp_metrics: Composition metrics

Description

Calculates the relative abundance of particular taxa in the assemblage in percentage terms.

Usage

comp_metrics(dataset, store = FALSE, dec_c = ".", verbose = FALSE)

Value

This function returns a data.frame with all the calculated composition measures:

per_ephe

% Ephemeroptera.

per_molus

% Mollusca.

per_gastr

%Gastropoda.

per_biv

%Bivalvia.

per_crus

%Crustacea.

per_oli

% Oligochaeta.

per_amph

% Amphipoda.

per_ostr

% Ostracoda.

per_ephetricho

% Ephemeroptera + Trichoptera.

per_naid

% Naididae.

per_chir_dip

% Diptera Chironomidae.

per_non_chir_dip

%Diptera no Chironomidae.

per_polym

%Polymitarcidae.

per_hyal

%Hyalella.

per_coch

%Cochliopidae.

per_tricho

%Trichoptera.

per_subchiro

%Chironominae.

per_suborth

%Orthocladiinae.

per_subtany

%Tanypodinae.

Arguments

dataset

A data.frame obtained from read_data.

store

A logical value indicating if the user want to store the results in a file.

dec_c

A character used for decimal separator on results file.

verbose

A logical value indicating if progress messages should be given.

Author

Juan Manuel Cabrera and Julieta Capeletti.

Details

Provides information on the makeup of the assemblage and the relative contribution of the populations to the total fauna (Barbour et al., 1996).

References

Barbour MT, Gerritsen J, Griffith GE, Frydenborg R, McCarron E, White JS & Bastian ML (1996). A Framework for Biological Criteria for Florida Streams Using Benthic Macroinvertebrates. tools:::Rd_expr_doi("10.2307/1467948")

See Also

read_data

Examples

Run this code

#Load example data
example_data

#Run comp_metrics with that example_data
compmetrics<-comp_metrics(example_data)

#Check results
compmetrics

Run the code above in your browser using DataLab