taxnamesplit: Extract name at a given taxonomic level from a full name in...

View source: R/taxnamesplit.R

taxnamesplitR Documentation

Extract name at a given taxonomic level from a full name in the "p__;c__;o__;f__;g__;s__" format

Description

This function splits a full taxonomic lineage as a given level and returns the latter half.

Usage

taxnamesplit(names, level = "genus")

Arguments

names

Name string/ vector of name strings

level

taxonomic level to split at must be in range phylum to species (default is genus).

Value

A string (or vector of strings if input is a vector) containing the second part of the input string split at the given taxonomic level.

Examples

taxnamesplit("p__Bacteroidetes;c__Bacteroidia","class")

microbialman/IgAScores documentation built on May 20, 2022, 7:32 a.m.