What is the fastest way to detect if a vector has at least 1 NA in R? I\'ve been using:
NA
sum( is.na( data ) ) > 0
But that
You can try:
d <- c(1,2,3,NA,5,3) which(is.na(d) == TRUE, arr.ind=TRUE)