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)

  Thanks~

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to