[R] How to test if something doesn't exist

Joseph Trubisz jtrubisz at me.com
Wed May 22 20:08:44 CEST 2013


Couldn't exactly explain the subject, so here's  the example:

idx<-which(blah[,1]=="xyz")
idx
integer(0)

How do I test that idx has a valid value (namely, > 0)?

TiA,
Joe



More information about the R-help mailing list