Return the given object or a default value if the object is NA
Arguments
- x
vector possibly containing NA values
- default
default value that is returned if
x
is NA- count
if
TRUE
(the default isFALSE
) the number of replaced values is returned in the attributescount