If replace_na is not a mandatory requirement, following code will work:
mtcars %>% replace(is.na(.), 0)
Reference Issue: https://stackoverflow.com/a/45574804/8382207
If replace_na is not a mandatory requirement, following code will work:
mtcars %>% replace(is.na(.), 0)
Reference Issue: https://stackoverflow.com/a/45574804/8382207