sample_sums {phyloseq} | R Documentation

## Returns the total number of individuals observed from each sample.

### Description

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

### Usage

    sample_sums(x)

### Arguments

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

### Value

A named `numeric-class` length equal to the number of samples in the `x`, name indicating the sample ID, and value equal to the sum of all individuals observed for each sample in `x`.

### See Also

`taxa_sums`, `rowSums`, `colSums`

### Examples

    data(enterotype)
    sample_sums(enterotype)
    data(esophagus)
    sample_sums(esophagus)

[Package phyloseq version 1.34.0 Index]