From rpeng at jhsph.edu  Thu Nov 24 17:18:48 2005
From: rpeng at jhsph.edu (Roger Peng)
Date: Thu, 24 Nov 2005 11:18:48 -0500
Subject: [Rd] write.csv
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAhSZy0zcp30KH/pKqSCi9sMKAAAAQAAAAcIeg/3SLt0iaHwGiAYoTZgEAAAAA@schaltenbrand.de>
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAhSZy0zcp30KH/pKqSCi9sMKAAAAQAAAAcIeg/3SLt0iaHwGiAYoTZgEAAAAA@schaltenbrand.de>
Message-ID: <4385E7E8.8030406@jhsph.edu>

If you don't want the row names, as 'write.csv()' writes out by default, 
try

write.table(<object>, file = "myfile.csv", sep = ",", row.names = FALSE)

-roger

Sven Schaltenbrand wrote:
> hallo,
>  
> i have a problem by writing a csv file
> the first colum is filled with index numbers from 1 to n.
> i have to unique two csv files once a week while one file is always the
> same.
> can anybody tell me, how to write the dataset into a csv file without the
> first row of the indexnumbers.
> x[,-1] does not wok as it eliminates the first "interesting" colum.
> col.names is not accepted by r (do i habe to start a package first? which
> one?)
>  
> thx
>  
> sven
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] write.csv
Roger Peng