Re: [R] Detecting missing variables

2009-03-08 Thread David Winsemius
If your data.frame after importing that csv file is DF, then this will return a list of variables with the row numbers that have missing values for each variables: sapply(DF, function(x) which(is.na(x))) But the overall tenor of you question suggests that you may need to back up a step and

[R] Detecting missing variables

2009-03-08 Thread Shreyasee
Dear All, I have a csv file which has total 510 records and 15 variables. I am trying to write a code which will return me for each record which variable is missing. For e.g. If for record 1, variables 8 & 9 are missing, the R code should return me that. In similar way I need to find the missing v