This function returns a vector without NAs (matrix input will be transformed to vector). Returns NULL if input consists only of NAs.
Arguments
x
(vector or matrix) data to check & remove NAs
silent
(logical) suppress messages if TRUE
debug
(logical) additional messages for debugging
callFrom
(character) allows easier tracking of messages produced
Details
Resulting objects from naOmit are smaller in size and subsequent code execution (on large vectors) may be faster (in particular if many NAs get encountered).
Note : This function behaves differently to na.omit with input other than plain vectors. Will not work with data.frames !