Convert counts into fractions of total counts
Source:R/sig_renormalise.R
compute_fraction_from_count.Rd
Convert counts into fractions of total counts, dealing with zero sum counts by setting to zero instead of Inf
Examples
compute_fraction_from_count(c(10, 2, 1000, 50, 250))
#> [1] 0.007621951 0.001524390 0.762195122 0.038109756 0.190548780