sample_sums: Sum the observations in each sample.

sample_sumsR Documentation

Sum the observations in each sample.

Description

Sum the observations in each sample.

Usage

sample_sums(biom)

Arguments

biom

An rbiom object, such as from as_rbiom(). Any value accepted by as_rbiom() can also be given here.

Value

A named numeric vector of the number of observations in each sample. The names are the sample IDs.

See Also

Other samples: pull.rbiom()

Other rarefaction: rare_corrplot(), rare_multiplot(), rare_stacked(), rarefy(), rarefy_cols()

Examples

    library(rbiom)
    
    sample_sums(hmp50) %>% sort() %>% head()
    
    hist(sample_sums(hmp50))

cmmr/rbiom documentation built on April 28, 2024, 6:38 a.m.