[R] format, zero.print and NA
rexi
may.ka38 at yahoo.de
Wed Aug 17 11:33:14 CEST 2011
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.
More information about the R-help
mailing list