Skip to content
Prev 175780 / 398506 Next

A query about na.omit

On Wed, 2009-04-01 at 16:49 +0100, Jose Iparraguirre D'Elia wrote:
Hi Jose Luis,

I think this script is sufficient for your problem:

tab<-matrix(c(1,1,1,2,2,2,3,3,NA,4,NA,4,NA,5,5),ncol=3,byrow=T)
tab[!is.na(tab[,1])&!is.na(tab[,2]),]