[R] How to do it in R
Leonardo Fontenelle
leonardof at leonardof.med.br
Fri Jun 24 18:21:59 CEST 2016
myfun <- function(a, b) a/(a + b)
Leonardo Ferreira Fontenelle
Em Sex 24 jun. 2016, às 13:05, André Luis Neves escreveu:
> Dear all,
>
> I`ve got to calculate the ratio of methanogens to bacteria, but I
> wouldn`t
> like to divide the total copy numbers of methanogens ( on average 10^8)
> by
> bacteria (10^10) because they have different exponents and bases. So, my
> idea is to standardize both microorganisms counts to 10^3.
>
> Hypothetical example of what I`d like to do:
>
> Total Methanogens: 28 x 10^3
> Total bacteria: 710 x 10^3
>
>
> Total: 710 + 28= 738 x 10^3
>
> Met/bac Ratio : (28/738)*100 = 3.79%
>
> How could I perform this calculation in R?
>
> Thanks,
>
> --
> Andre
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help em r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list