[R] compare three values

Alfredo Alessandrini alfreale74 at gmail.com
Mon Aug 30 12:02:32 CEST 2010


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



More information about the R-help mailing list