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
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
2 matches
Mail list logo