79635213

Date: 2025-05-23 09:24:36
Score: 1.5
Natty:
Report link

More trivial solution i used :

library(data.table)

your_df[, lapply(.SD, function(x){
  ifelse(is.na(x), 0, x)
}), .SDcols = is.numeric]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DevDataLover