# logical
fill_all(c(TRUE, NA, FALSE))
fill_all(c(TRUE, NA, FALSE, nas = FALSE))
fill_all(c(TRUE, NA, FALSE, value = NA))
# integer
fill_all(matrix(1:4, nrow = 2), value = -1)
# numeric
fill_all(c(1, 4, NA), value = TRUE)
fill_all(c(1, 4, NA), value = TRUE, nas = FALSE)
# character
fill_all(c("some", "words"), value = TRUE)
Run the code above in your browser using DataLab