Re: [R] compare three values
010 12:03 > Aan: r-help@r-project.org > Onderwerp: [R] compare three values > > Hi, > > I've three values. What is the best method to choice the > lowest values with an if function? > > example: > > a = 3 > > b = 1 > > c = 5 >
[R] compare three values
Hi, I've three values. What is the best method to choice the lowest values with an if function? example: a = 3 b = 1 c = 5 if (lowest(a,b,c) is a) {} if (lowest(a,b,c) is b) {} if (lowest(a,b,c) is c) {} Thanks, Alfredo __