Hallo, I need to print a matrix where zeros as well as NA occuring. The NA must be keept and the zeros have to be converted to ".". I used format and zero.print, but as soon as the matrix contains NA format gives an error message. Taking out the zero.print option or the NA's results in no problems. eg:
a<-c(1,0,NA) format(a,zero.print=".") results in a error message Is there any solution Thanks rexi -- View this message in context: http://r.789695.n4.nabble.com/format-zero-print-and-NA-tp3749497p3749497.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.