[R] Puzzled by write.table function
Uwe Ligges
ligges at statistik.uni-dortmund.de
Fri Feb 13 08:28:55 CET 2004
Wang, Hui wrote:
> I am puzzled by the following:
>
> I use two write.table function(write into files) in my code as following
> (I use source to call the code):
> ....
> write.table (x1, file ="x1.txt", quote = "FALSE", append=FALSE, sep="\t",
> eol="\n", "na=NA"...)
> ....(more statement)
> ..
> write.table (x2, file="x2.txt"...)
>
>
> it turned out the second one is always empty.
>
> I know there is nothing the code itself as I can get second write.table
> statement work if I comment the first.
>
> Does anybody know what happened here?
No, in particular not in this case, because you have given a
non-reproducible example (moreover, it is syntactically wrong!).
Please also tell us your version of R and your OS.
Uwe Ligges
More information about the R-help
mailing list