Fastest way to detect if vector has at least 1 NA?

后端 未结 6 1113
南旧
南旧 2020-12-23 14:50

What is the fastest way to detect if a vector has at least 1 NA in R? I\'ve been using:

sum( is.na( data ) ) > 0

But that

6条回答
提交回复
热议问题