[R] convert to csv file

David Winsemius dwinsemius at comcast.net
Fri Sep 17 03:59:06 CEST 2010


On Sep 16, 2010, at 9:49 PM, lord12 wrote:

>
> I have a command:
> write.table(table_list, file= paste("file", x, sep = "")) where x is  
> the
> file name. How do I convert this file into a csv file in this  
> statement?

By using a sep argument of "," for write.table or using the pre- 
packaged write.csv(), which will choose appropriate defaults for csv  
files but is really only a call to write.table().

> -- 
> View this message in context: http://r.789695.n4.nabble.com/convert-to-csv-file-tp2543232p2543232.html
> Sent from the R help mailing list archive at Nabble.com.


-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list