na_replace | R Documentation |
Replaces NA values found in a vector with a specified scalar value
NOTE:
The dplyr::coalesce()
function now provides this functionality in a
more general way, so this function may merit deprecation.
na_replace(x, replace)
x |
Vector possibly containing missing ( |
replace |
Scalar replacement value. |
Copy of x with any missing values replaced with replace.
Other functions for NA
handling:
na_if_in()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.