[R] Problem with any()

Chris Mcowen chrismcowen at gmail.com
Fri Sep 24 11:11:43 CEST 2010


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



More information about the R-help mailing list