Learn R Programming

BEQI2 (version 2.0-0)

genusToSpecies: Genus to Species Conversion

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

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.

Examples

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

Run the code above in your browser using DataLab