[R] error in saved .csv

Don McKenzie dmck at u.washington.edu
Wed Mar 2 00:01:35 CET 2011


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



More information about the R-help mailing list