Answers for "check if there are na in r"

R
0

if not na in r

which( !is.na(p), arr.ind=TRUE)
Posted by: Guest on May-24-2020
0

if not na in r

lapply(apply(p, 1, function(x) which(!is.na(x)) ) , paste, collapse=", ")
Posted by: Guest on May-24-2020
0

if not na in r

> apply(p, 1, function(x) which(!is.na(x)) )
[[1]]
[1] 2 3

[[2]]
[1] 4 7

[[3]]
integer(0)

[[4]]
[1] 5

[[5]]
integer(0)
Posted by: Guest on May-24-2020

Code answers related to "check if there are na in r"

Browse Popular Code Answers by Language