Covert a counts table to a relative abundances table

counts_to_relabu(counts_table)

Arguments

counts_table

A organism x sample data frame of counts

Value

A organism x sample data frame of relative abundances

Examples

counts_to_relabu(matrix(seq_len(12), 4))
#>                          
#> 1 0.1 0.1923077 0.2142857
#> 2 0.2 0.2307692 0.2380952
#> 3 0.3 0.2692308 0.2619048
#> 4 0.4 0.3076923 0.2857143