Learn R Programming

microcontax (version 1.2)

genusLookup: Taxonomy lookup

Description

Extracting taxonomic information from the taxonomy.table.

Usage

genusLookup(genera, rank = "Phylum")

Arguments

genera

A vector of texts, the genera names to look up.

rank

A single text, the level of the taxonomy to look up.

Value

A character vector containing the taxonomy information. Names in genera not recognized will return NA. Please note that there are some cases of un-assigned taxonomy at some ranks (Class, Order or Family), this is returned as "unknown".

Details

Function for looking up higher-level taxonomy of specified genera.

The argument genera must consist of names in the Genus column of the data set taxonomy.table.

See Also

taxonomy.table.

Examples

Run this code
# NOT RUN {
genus <-  c("Acidilobus","Nitrosopumilus","Hyphomonas") 
genusLookup(genus, rank = "Phylum")
genusLookup(genus, rank = "Class")


# }

Run the code above in your browser using DataLab