Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/sort_my_taxtab.R
Sorts taxonomy table by ASV-identifying columns.
1 | sort_my_taxtab(tt, ranknames)
|
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. |
A helper function for the ...2df family of pre-processing functions. If multiple columns are available to sort, it uses the left-most column.
a dataframe sorted by the columns specified in ranknames
Dylan Catlett
bayestax2df, idtax2df
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.