reduce_names: Shorten taxonomic assignment in table row names

Description Usage Arguments Value Note Author(s) Examples

Description

Reduces the full string indicating taxonomy to the last classified level. Works on tables at levels higher than OTUs.

Usage

1

Arguments

table

A table containing the relative abundances of each taxa produced by combine_otus()

Value

Returns the same table with shortened row names

Note

This function is often most useful for plotting, so that the full string does not appear on the plot

Author(s)

Alexandra Linz <amlinz16@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(otu_table)
data(taxonomy)

# Create a small table for the example
# example <- year_subset("05", otu_table)
# example <- bog_subset("TBE", example)

# clade_table <- combine_otus("Clade", example, taxonomy)
# clade_table <- clade_table[which(rowSums(clade_table) > 0),]
# head(rownames(clade_table))
# reduced_clades <- reduce_names(clade_table)
# head(rownames(reduced_clades))

Example output



OTUtable documentation built on May 1, 2019, 10:51 p.m.