Re: [R] How to do it in R

2016-06-24 Thread Bert Gunter
This is very basic. Have you gone through any R tutorials? There are many good ones on the web. e.g., see here: https://www.rstudio.com/online-learning/#R In any case, you should not expect this list to teach you basic R. You *should* expect it to help you learn and improve your own efforts. I rea

Re: [R] How to do it in R

2016-06-24 Thread jim holtman
pretty simple: > t_m <- 28e3 > t_b <- 710e3 > ratio <- t_m / (t_m + t_b) * 100 > ratio [1] 3.794038 Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Fri, Jun 24, 2016 at 12:05 PM, André Luis Neves wrote:

Re: [R] How to do it in R

2016-06-24 Thread Leonardo Fontenelle
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 > b

[R] How to do it in R

2016-06-24 Thread André Luis Neves
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. Hypot