User Tools

Site Tools


replace_nas_with_0
library(dplyr)
df <- df %>%
      mutate(colname = ifelse(is.na(colname),0,colname))
replace_nas_with_0.txt · Last modified: 2015/12/16 13:28 by vincenzo