Skip to contents

Sum the relative abundance across variables.

Usage

sum_rel_abund(rel_abund_tb, ...)

Arguments

rel_abund_tb

A relative abundance table in

...

Variables as strings.

Value

Summaries in tibble format.

Examples

rel_abund_phy(physeq) %>%
sum_rel_abund("sample_id")
#> # A tibble: 50 × 2
#>    sample_id     sum
#>    <chr>       <dbl>
#>  1 Smp1      0.00873
#>  2 Smp10     0.00772
#>  3 Smp11     0.0176 
#>  4 Smp12     0.00657
#>  5 Smp13     0.00863
#>  6 Smp14     0.0186 
#>  7 Smp15     0.0151 
#>  8 Smp16     0.0115 
#>  9 Smp17     0.00396
#> 10 Smp18     0.0383 
#> # ℹ 40 more rows