grepColNA {rrMisc} | R Documentation |
Get attributes of data.frame which contain NAs.
grepColNA(x, ...)
x |
data.frame |
... |
Arguments passed to further functions |
If the input is a vector, grepColNA() indicates if NAs are present. If the input is a data.frame, grepColNA() returns the colums which contain NAs.
Column names which values contain NAs or indication about NAs.
under continuous developement
Roland Rapold
none
grepColEntries
grepColNames
grepObjNames
grepNotCompleteEntries
grepMultipleEntries
grepRowNames
grepColNegNum
grepColFactors
if(require("MASS")) { # load example data data(crabs, package="MASS") head(crabs) print(grepColNA(crabs)) tt <- crabs tt[122,2] <- NA tt[22, 4] <- NA print(grepColNA(tt)) print(grepColNA(c(pi, NA, 4.000000, 5.000000, 5, 6, 5, 6))) }