convert_to_vegan: convert data to other formats

View source: R/convert_to_vegan.R

convert_to_bioticR Documentation

convert data to other formats

Description

Utility functions to export data to other formats.

Usage

convert_to_biotic(x)

convert_to_vegan(x, tax_lev = "Family")

Arguments

x

Result of aggregate_taxa().

tax_lev

The taxonomic level of interest. Possible choices are Phylum, Class, Subclass, Order, Family, Subfamily, Tribus, Genus, Species, Subspecies, Taxa

Details

convert_to_vegan() converts data to the vegan package style, with sites on rows and taxa on columns. convert_to_biotic() converts data to the format of biotic package. This function will extract information at the family level, with an exception for Oligochaeta. In convert_to_biotic() if both family and above family level taxonomic information of Oligochaeta are concurrently present, information will be provided for Oligochaeta level only. biomonitoR automatically identify the taxonomic level at which Oligochaeta are stored (subclass is the default in biomonitoR). Be careful, for all the other taxa entered at taxonomic level higher than family will be discarded (e.g. Trombidiformes).

Functions

  • convert_to_biotic(): convert data to biotic format

See Also

aggregate_taxa

Examples

data(macro_ex)
data_bio <- as_biomonitor(macro_ex)
data_agr <- aggregate_taxa(data_bio)
data_cv <- convert_to_vegan(data_agr, tax_lev = "Family")

alexology/biomonitoR documentation built on Oct. 10, 2024, 12:02 a.m.