getRepresentative: Get representative from a list of taxa based on a selected...

View source: R/subSampling.R

getRepresentativeR Documentation

Get representative from a list of taxa based on a selected taxonomy rank

Description

Get representative from a list of taxa based on a selected taxonomy rank

Usage

getRepresentative(taxonList = NULL, rank = NULL)

Arguments

taxonList

List of taxa

rank

Taxonomy rank used for sub-sampling. Each super taxon of this rank will have one representative.

Value

A dataframe contains sub-selected taxa including their IDs, names, as well as IDs and names of the supertaxa from the selected rank.

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

Examples

taxonList <- c(
    214684, 246409, 3055, 336722, 3702, 400682, 441375, 45351, 4558, 559292, 
    6239, 7227, "Homo sapiens"
)
getRepresentative(taxonList, rank = "phylum")

trvinh/taxFun documentation built on July 3, 2023, 8:55 p.m.