Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
1 つの計算の結果のベクトルが NA 値でいっぱいかどうかを確認するにはどうすればよいですか? ありがとう
経由all(is.na(x)):
all(is.na(x))
R> x1 <- 1:3 R> all(is.na(x1)) [1] FALSE R> x2 <- x1 * NA R> all(is.na(x2)) [1] TRUE R>