Skip to content
Prev 320760 / 398500 Next

What is SAS options missing=0 equivalent in R?

On Apr 2, 2013, at 16:49 , ramoss wrote:

            
The straightforward way would be

d[is.na(d)] <- 0

---with some caveats if you have non-numeric data in some columns.