powered by
replace_na(data, replace = list(), ...)
NA
library(dplyr) df <- data_frame(x = c(1, 2, NA), y = c("a", NA, "b")) df %>% replace_na(list(x = 0, y = "unknown"))
Run the code above in your browser using DataLab