I have a data frame as follows:
col1 col2 col3 1 23 17 NA 2 55 NA NA 3 24 12 13 4 34 23 12
Another solution:
data <- read.table(text='col1 col2 col3 23 17 NA 55 NA NA 24 12 13 34 23 12', header=T) sum(apply(is.na(data[, -1]), 1, any))