na2val | R Documentation |
Convert NA values to a number
na2val(x, val = 0)
x |
A value to be tested |
val |
The value to replace NAs with |
This is an internal function used to convert NA to something else. This is useful in if() statements when checking the value of an object which may possibly not exist.
This function is vectorized.
The value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.