taxnamesplit {IgAScores}R 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")

[Package IgAScores version 0.1.2 Index]