naRows {omnibus} | R Documentation |
Index of rows in a data frame or matrix that contain at least one NA
Description
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))
.
Usage
naRows(x, inf = FALSE, inverse = FALSE)
Arguments
x |
Data frame or matrix. |
inf |
Logical, if |
inverse |
Logical, if |
Value
Integer vector.
Examples
x <- data.frame(a=1:5, b=c(1, 2, NA, 4, 5), c=c('a', 'b', 'c', 'd', NA))
naRows(x)
[Package omnibus version 1.2.13 Index]