powered by
This function is wrapper for ifelse(is.nan(vec),vec,val)
if.nan(vec, val)
A vector or matrix with the same dimensions as the input, where any NaN values have been replaced by the specified val argument.
A vector or matrix.
The value to replace NaN with.