[R] write.table - format

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Jan 8 10:01:39 CET 2002



Nando Foppa wrote:
> 
> Hello there
> 
> I ` m a newbie in R and have a question about the output of write.table
> My command looks like this:
> write.table(datatr$V1[data.chull],file="outr.txt", quote = FALSE, sep =
> "\t")
> 
> In the outputfile (outr.txt) I have an "x" in the left corner and a new
> row with  numbers for each column(1,2,3...).
> I just want the values in my file. What should I change in
> write.table-command?

See ?write.table:

write.table(..., row.names=FALSE, col.names=FALSE)

Uwe

> output now:
> x
> 1 179.18143
> 2 169.73087
> 3 169.73087
> 4 140.48254
> 5 111.9501
> 6 59.180557
> ....
> 
> it should look like this:
> 179.18143
> 169.73087
> 169.73087
> 140.48254
> 111.9501
> 59.180557
> ...
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list