Last chance! 50% off unlimited learning
Sale ends in
replace_na(data, replace = list(), ...)NA with
for each column.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