Re: [R] error in saved .csv

From: Don McKenzie <dmck_at_u.washington.edu>
Date: Tue, 01 Mar 2011 15:01:35 -0800

If you have ONE data frame that you want to export to excel (I believe that was the original request), you probably don't need to change any of the default arguments to write.csv(), except "row.names", which will give you an extra column.

On Mar 1, 2011, at 2:50 PM, Tamas Barjak wrote:

> Yes, the format is incorrect. I have already tried the write.table, but it
> didn't work.
> 
> 
> 2011/3/1 jim holtman <jholtman_at_gmail.com>
> 
>> I am not sure what you are saying your problem is?  Is the format
>> incorrect?  BTW, notice that write.csv does not have a 'sep'
>> parameter.  Maybe you should be using write.table.
>> 
>> On Tue, Mar 1, 2011 at 4:36 PM, Tamas Barjak <tamas.barjak02_at_gmail.com>
>> wrote:

>>> Help me please!
>>>
>>> I would like to be saved a data table:
>>>
>>> write.csv(random.t1, "place", dec=",", append = T, quote = FALSE, sep = "
>> ",

>>> qmethod = "double", eol = "\n", row.names=F)
>>>
>>> It's OK!
>>>
>>> But the rows of file
>>>
>>> 1,1,21042,-4084.87179487179,2457.66483516483,-582.275562799881
>>> 2,2,23846,-6383.86480186479,-3409.98451548449,-3569.72145340269
>>> and no
>>>
>>> 1
>>> 21042 - 4084.87179487179 2457.66483516483
>>> Not proportional...
>>>
>>> What's the problem???
>>>
>>> Thanks!
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help_at_r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html

>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>> 
>> 
>> 
>> --
>> Jim Holtman
>> Data Munger Guru
>> 
>> What is the problem that you are trying to solve?
>> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




Don McKenzie
Research Ecologist
Pacific Wildland Fire Sciences Lab
US Forest Service

Affiliate Professor
School of Forest Resources and CSES Climate Impacts Group University of Washington

phone: 206-732-7824
cell: 206-321-5966
dmck_at_uw.edu



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 01 Mar 2011 - 23:06:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Mar 2011 - 23:10:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive