[R] Appending data to a data.frame and writing a csv

2011-03-25 Thread Vincy Pyne
Dear R helpers exposure - data.frame(id = c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20), ead = c(9483.686,5,6843.4968,10509.37125,21297.8905,5,706152.8354, 62670.5625, 687.801995,50641.4875,59227.125,43818.5778,52887.72534,601788.7937,

Re: [R] Appending data to a data.frame and writing a csv

2011-03-25 Thread Ista Zahn
Hi Vincy, Please read the help file, particularly the part about write.csv and write.csv2 where it says These wrappers are deliberately inflexible: they are designed to ensure that the correct conventions are used to write a valid file. Attempts to change append, col.names, sep, dec or qmethod are

Re: [R] Appending data to a data.frame and writing a csv

2011-03-25 Thread Vincy Pyne
Dear Mr Ista Zahn, Thanks a lot for your suggestion. I had also realized that if I need to write.csv command should be out of loop. At first, I need to construct the data.frame. Actually appending this data.frame is causing me the problem and not writing the csv file. That particular command