[R] write: write array to file without NAs

Jannis bt_jannis at yahoo.de
Wed Mar 24 21:53:00 CET 2010


Dears,

does anyone know, how I can get R to save the values of an array in a csv like file using write(), but without printing NA to the file? I use ';' to seperate the elements, so :

a=c(1,NA,2,3,3)

write(a)

should produce


1;;2;3;3


in the file.


Thanks in advance!

__________________________________________________
Do You
enden Schutz gegen Massenmails. 
http://mail.yahoo.com



More information about the R-help mailing list