I have a data frame and some columns have NA values.
NA
How do I replace these NA values with zeroes?
It is also possible to use tidyr::replace_na.
tidyr::replace_na
library(tidyr) df <- df %>% mutate_all(funs(replace_na(.,0)))