ifelse, rowSums, is.na