arlc_replace_na {arlclustering} | R Documentation |
Replace NA with a Specified Value
Description
This function replaces NA values in a vector or data frame with a specified value.
Usage
arlc_replace_na(x, value)
Arguments
x |
A vector or data frame. |
value |
The value to replace NA with. |
Value
The vector or data frame with NA values replaced.
Examples
arlc_replace_na(c(1, NA, 3), 0)
arlc_replace_na(data.frame(a = c(1, NA, 3), b = c(NA, NA, 3)), 0)
[Package arlclustering version 1.0.5 Index]