genusToSpecies: Genus to Species Conversion

Description Usage Arguments Value Note Examples

View source: R/utils.R

Description

For each sample, the algorithm tries to convert taxa on the genus level to the species level. Counts at the genus level will be distributed over the species level proportional to the available number of species.

Usage

1
genusToSpecies(id, taxon, count)

Arguments

id

sample identifier

taxon

taxon name on either the genus or species level

count

total number of individuals of a specific taxon in a sample

Value

data.frame with three columns: id the sample identifier, taxon the taxon name, and count the count after genus to species conversion.

Note

The updated counts are not necessarily integers.

Examples

1
2
genusToSpecies(id = c(1, 1, 1),
         taxon = c("Genus1", "Genus1 s1", "Genus1 s2"), count = c(4, 2, 1))

BEQI2 documentation built on May 2, 2019, 8:19 a.m.