I am not sure, whether this example should work or works as intended
df <- DataFrame(one = c(1,2,3), two = c(NA,NA,NA)) df[is.na(df)] Error: subscript is a logical vector with out-of-bounds TRUE values In addition: Warning message: In NSBS(i, x, exact = exact, strict.upper.bound = !allow.append, : subscript is an array, passing it thru as.vector() first
The logical matrix seams to be reasonable valid
is.na(df) [,1] [,2] [1,] FALSE TRUE [2,] FALSE TRUE [3,] FALSE TRUE
In comparison using data.frame
df2 <- as.data.frame(df) df[is.na(df)]  NA NA NA
Any advice or suggestions? Did I miss something obvious? Is the use case I described discouraged somehow?