View source: R/reannotateTax.R
reannotateTax | R Documentation |
reannotateTax
was renamed to reannotate_tax
for more consistent
function naming nomenclature in OCMSutility
. Usage is still exactly the same
reannotateTax(taxonomy)
taxonomy |
taxonomy table. Must have |
updated taxonomy table with "unclassified" prepended with higher level classifications
data(asv_example)
# adding Kingdom column; removing sequence column because don't need asv IDs in this example
old_tax <- tax_example
colnames(old_tax)[1] <- 'Kingdom'
old_tax$Kingdom <- 'Bacteria'
knitr::kable(head(old_tax))
new_tax <- reannotateTax(old_tax)
# ->
new_tax <- reannotate_tax(old_tax)
knitr::kable(head(new_tax))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.