[Rd] write.csv suggestion

From: McGehee, Robert <Robert.McGehee_at_geodecapital.com>
Date: Wed 29 Jun 2005 - 19:19:41 GMT


Hello all,
I had some trouble recently with write.csv because I couldn't change one of the default options. A quick view of the code showed that the function was not defined in the most optimal way.

Currently,
write.csv <- function (..., col.names = NA, sep = ",", qmethod = "double")

        write.table(..., col.names = NA, sep = ",", qmethod = "double")

Thus, the options passed along to write.csv are ignored by the function (unless in the ...).

Perhaps a better way to define the function is as such (similar to read.csv):

write.csv <- function (..., col.names = NA, sep = ",", qmethod = "double")

        write.table(..., col.names = col.names, sep = sep, qmethod = qmethod)

The same also applies to write.csv2

Best,
Robert

> version

         _
platform i386-pc-mingw32

arch     i386           
os       mingw32        
system   i386, mingw32  
status                  
major    2              
minor    1.1            
year     2005           
month    06             
day      20             

language R

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Jun 30 05:22:09 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:09 GMT