> y <- matrix( c(20, NA, NA, 45, 50, 19, 32, 101, 10, 22, NA, NA, > 80, 49, 61, 190), ncol=4 ) > x <- matrix( c(20, NA, NA, NA, 50, 19, 32, 101, 10, 22, NA, NA, > 80, 49, 61, 190), ncol=4 ) > > #Whereas x contains all NA�s from y plus some additional NA�s. > #I want to find the index of these additional NA�s. I think, there must be a > very easy way to do this.
How about this: is.na(x) & !is.na(y) Jonne. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
