Re: [R] write: write array to file without NAs

2010-03-24 Thread Sharpie
jannis-2 wrote: > > 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

[R] write: write array to file without NAs

2010-03-24 Thread Jannis
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! _