In dplyr I can replace NA with 0 using the following code. The issue is this inserts a list into my data frame which screws up further analysis down the line. I don\'t even
To replace all NAs in a dataframe use
df %>% replace(is.na(.), 0)