taxa_sums {phyloseq} | R Documentation

## Returns the total number of individuals observed from each species/taxa/OTU.

### Description

A convenience function equivalent to rowSums or colSums, but where the orientation of the otu_table is automatically handled.

### Usage

    taxa_sums(x)

### Arguments

`x` | `otu_table-class`, or `phyloseq-class`.

### Value

A `numeric-class` with length equal to the number of species in the table, name indicated the taxa ID, and value equal to the sum of all individuals observed for each taxa in `x`.

### See Also

`sample_sums`, `rowSums`, `colSums`

### Examples

    data(enterotype)
    taxa_sums(enterotype)
    data(esophagus)
    taxa_sums(esophagus)

[Package phyloseq version 1.24.2 Index]