Skip to content
Prev 172786 / 398525 Next

how to omit NA without using ifelse

Hi: what you want to do is not recommended if you're doing a statistical 
computation ( many threads
on this. search the archives if you want more details )  but if you 
really want to do that below should work:

mat[is.na(mat)]<-0
On Thu, Mar 5, 2009 at 11:22 PM, Manli Yan wrote: