naRows | R Documentation |
NA
This function returns the row number of any row in a data frame or matrix that has at least one NA
. This is the same as which(!complete.cases(x))
.
naRows(x, inf = FALSE, inverse = FALSE)
x |
Data frame or matrix. |
inf |
Logical, if |
inverse |
Logical, if |
Integer vector.
x <- data.frame(a=1:5, b=c(1, 2, NA, 4, 5), c=c('a', 'b', 'c', 'd', NA))
naRows(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.