| formatNA | R Documentation | 
Recodes the NA entries in output by a desired code
like " ."
formatNA(x, na.print = " .", digits = getOption("digits"), ...)
x | 
 object to be printed, usually a numeric vector or data.frame  | 
na.print | 
 code to be used for   | 
digits | 
 number of digits for formatting numeric values  | 
... | 
 other arguments to   | 
The na.encode argument of print only applies to
character objects. formatNA does the same for numeric arguments.
Should mimik the value of format
Werner A. Stahel
format
formatNA(c(1,NA,3))
dd <- data.frame(X=c(1,NA,3), Y=c(4,5, NA), g=factor(c("a",NA,"b")))
(rr <- formatNA(dd, na.print="???"))
str(rr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.