[R] Convert NA to '.'

David_D david.dabin at gmail.com
Mon Jun 22 08:11:52 CEST 2009


Dear R-users,

For reporting purpose (using Sweave and LaTeX), I am creating complex tables
with the cat function such as

> x<-c("A", "B", "C", NA)
> cat(x, '\n')
A B C NA

For convenience, I would like to change all my NA value to something else
like '.' (as in SAS for example). Is there a global option which allows this
change? Or should I change all my code to work with the print function and
the na.print argument?

Best regards,
David
-- 
View this message in context: http://www.nabble.com/Convert-NA-to-%27.%27-tp24142187p24142187.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list