if.na {kDGLM} | R Documentation |
This function is wrapper for ifelse(is.na(vec),vec,val)
if.na(vec, val)
vec |
A vector or matrix. |
val |
The value to replace NA with. |
A vector or matrix with the same dimensions as the input, where any NA values have been replaced by the specified val argument.