data.frame
,
structure
,
numeric
,
double
,
single
,
integer
,
logical
,
list
, and
miVariableVirtual
.
(The latter is in
library(missing)
.)
numberMissing(x)
The function currently does not support any object with slots,
unless a method is written for the class of the object.
For objects without slots, the default method uses
which.na
,
so methods written for that function are used by this function.
numberMissing(1:5) numberMissing(c(1, NA, 2, NA)) numberMissing(list(a = 1:3, b = NA)) numberMissing(data.frame(a = 1:3, b = c(NA, 5:6)))