Hi Christofer, I have just repeated this and changed the code a little and it gives the correct result > any(as.integer(c(1, 3)) == 3) [1] TRUE > any(as.integer(c(1, 3)) == 2) [1] FALSE > any(as.integer(c(1, 3)) == 1) [1] TRUE HTH Chris On 24 Sep 2010, at 10:07, Christofer Bogaso wrote: > any(as.integer(c(1, 3))) == 3