From Robert.McGehee at geodecapital.com  Wed Jun 29 21:19:41 2005
From: Robert.McGehee at geodecapital.com (McGehee, Robert)
Date: Wed, 29 Jun 2005 15:19:41 -0400
Subject: [Rd] write.csv suggestion
Message-ID: <67DCA285A2D7754280D3B8E88EB548020C946615@MSGBOSCLB2WIN.DMN1.FMR.COM>

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



[Rd] write.csv suggestion
McGehee, Robert