Re: [R] write.csv and col.names=F

2009-12-18 Thread Gabor Grothendieck
Use write.table instead. On Thu, Dec 17, 2009 at 6:52 PM, kayj kjaj...@yahoo.com wrote: Hi All, I always have a problem with write.csv when I want the column names to be ignored, when I specify col.names=F, I get a header of V1 V2 V3 V4 etc. for example I tried write.csv(mydata,

Re: [R] write.csv and col.names=F

2009-12-18 Thread Reeyarn_李智洋_10928113
On Fri, Dec 18, 2009 at 7:52 AM, kayj kjaj...@yahoo.com wrote: Hi All, I always have a problem with write.csv when I want the column names to be ignored, when I specify col.names=F, I get a header of V1 V2 V3 V4 etc. I tried that and found the same problem, however, I found

Re: [R] write.csv and col.names=F

2009-12-18 Thread jim holtman
In R.2.9.2 I get the following error message if setting col.names=FALSE: write.csv(x, '', col.names=FALSE) ,a,b 1,1,1 2,2,2 3,3,3 4,4,4 5,5,5 6,6,6 7,7,7 8,8,8 9,9,9 10,10,10 Warning message: In write.csv(x, , col.names = FALSE) : attempt to set 'col.names' ignored You have to use write.table if

Re: [R] write.csv and col.names=F

2009-12-18 Thread Don MacQueen
At 9:37 PM +0800 12/18/09, =?UTF-8?B?UmVleWFybl/mnY7mmbrmtItfMTA5MjgxMTM=?= wrote: On Fri, Dec 18, 2009 at 7:52 AM, kayj kjaj...@yahoo.com wrote: Hi All, I always have a problem with write.csv when I want the column names to be ignored, when I specify col.names=F, I get a header of V1 V2

[R] write.csv and col.names=F

2009-12-17 Thread kayj
Hi All, I always have a problem with write.csv when I want the column names to be ignored, when I specify col.names=F, I get a header of V1 V2 V3 V4 etc. for example I tried write.csv(mydata, file=data.csv, quote=FALSE, row.names=F, col.names=F) Warning message: In write.csv(mydata, file =

Re: [R] write.csv and col.names=F

2009-12-17 Thread milton ruser
?write.table On Thu, Dec 17, 2009 at 6:52 PM, kayj kjaj...@yahoo.com wrote: Hi All, I always have a problem with write.csv when I want the column names to be ignored, when I specify col.names=F, I get a header of V1 V2 V3 V4 etc. for example I tried write.csv(mydata, file=data.csv,