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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.