Re: [R] Convert NA to '.'

2009-06-22 Thread David_D
ile?) that allow to change the display nd printing of NA by any symbol? Does it exist? Best regards, David Jorge Ivan Velez wrote: > > Dear David, > Try this: > > x <- c("A", "B", "C", NA) > x[is.na(x)] <- "." > x > > HT

[R] Convert NA to '.'

2009-06-22 Thread David_D
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 globa