if.nan | R Documentation |
This function is wrapper for ifelse(is.nan(vec),vec,val)
if.nan(vec, val)
vec |
A vector or matrix. |
val |
The value to replace NaN with. |
A vector or matrix with the same dimensions as the input, where any NaN values have been replaced by the specified val argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.