[R] how to omit NA without using ifelse
bartjoosen at hotmail.com
Fri Mar 6 13:06:26 CET 2009
Manli Yan wrote:
> I have a 50*50 matrix,some entry are NAs,I want to replace these NA by
> 0,so can I use some syntax to do so other than using ifelse?
> I tried to use replace(a,NA,0),it didnt work~~(a is matrix name)
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/how-to-omit-NA-without-using-ifelse-tp22365996p22371063.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help