sort_my_taxtab: Sorts taxonomy table by ASV-identifying columns.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/sort_my_taxtab.R

Description

Sorts taxonomy table by ASV-identifying columns.

Usage

1
sort_my_taxtab(tt, ranknames)

Arguments

tt

A taxonomy table supplied as a dataframe (no factors)

ranknames

A character vector of the names of columns of tt that contain taxonomic assignments. tt is sorted by columns not included in ranknames.

Details

A helper function for the ...2df family of pre-processing functions. If multiple columns are available to sort, it uses the left-most column.

Value

a dataframe sorted by the columns specified in ranknames

Author(s)

Dylan Catlett

See Also

bayestax2df, idtax2df

Examples

1
2
3
4
5
6
data("bayes.sample")
data("rubric.sample")
bayes.pretty <- bayestax2df(bayes.sample, rubric = rubric.sample)
sort_my_taxtab(bayes.pretty,
ranknames = c("kingdom", "supergroup", "division", "class", "order",
"family", "genus", "species"))

ensembleTax documentation built on May 21, 2021, 5:08 p.m.