genus_to_species {benthos}R Documentation

Genus to Species Conversion

Description

This alorithm reallocates the counts of taxa, that are only indentified at the genus level to taxa in the same sampling unit and of the same genus but that are identified on the species level. The redistribution of counts is proportional to the number of counts at the species level.

Usage

genus_to_species(is_genus, count)

Arguments

is_genus

logical vector with elements TRUE if the corresponding taxon is on the genus level, and FALSE if it is on the species level.

count

numeric vector with elements giving the counts of each corresponding taxon.

Value

numeric vector with updated counts. The counts for the taxon on the genus level have been set to zero.

Note

Parameters is_genus and count are of the same length and correspond to the same taxon.

The resulting counts are not necessarily integers.

Examples

     genus_to_species(is_genus = c(TRUE, FALSE, FALSE), count = c(3, 10, 20))
     genus_to_species(is_genus = c(TRUE, FALSE, FALSE), count = c(1, 10, 20))

[Package benthos version 1.3-8 Index]