Re: [R] Writing .csv file

2014-09-24 Thread John McKown
On Wed, Sep 24, 2014 at 4:00 PM, Steven Yen wrote: > I use the following command to write data to a .csv file: > > write.csv(yxz,file="foo.csv") > > And I get the following in the file, with one column appended to the file: > > "","fsp","fsec","cincome", > "1",0,3,2.25,... > "2",0,1,2.75,... >

Re: [R] Writing .csv file

2014-09-24 Thread Steven Yen
Wonderful. It worked like charms and I love it! Thank you Don. Steven At 05:06 PM 9/24/2014, Don McKenzie wrote: I believe you need to specify row.names = FALSE See the help for write.table() On Sep 24, 2014, at 2:00 PM, Steven Yen wrote: > I use the following command to write data to a .csv

Re: [R] Writing .csv file

2014-09-24 Thread Clint Bowman
?write.csv 2nd line of Usage: example Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360) 407-6815 PO Box 47600FAX:(360) 407-7534

Re: [R] Writing .csv file

2014-09-24 Thread Bert Gunter
Read the help docs? ( pay attention to the row.names argument) -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Clifford Stoll On Wed, Sep 24, 2014 at 2:00 PM, Steven Yen w

Re: [R] Writing .csv file

2014-09-24 Thread Don McKenzie
I believe you need to specify row.names = FALSE See the help for write.table() On Sep 24, 2014, at 2:00 PM, Steven Yen wrote: > I use the following command to write data to a .csv file: > >write.csv(yxz,file="foo.csv") > > And I get the following in the file, with one column appended to t

[R] Writing .csv file

2014-09-24 Thread Steven Yen
I use the following command to write data to a .csv file: write.csv(yxz,file="foo.csv") And I get the following in the file, with one column appended to the file: "","fsp","fsec","cincome", "1",0,3,2.25,... "2",0,1,2.75,... "3",1,1,0.625,... Question: is there a way to avoid the first colu