Dear all, about the problem shown by Foehl, I suggest one shortcut to reach the aim in a simply way:
write.table(matrix(c("Index","Rate","Demand","Supply"),nrow=1,ncol=4,byrow=T,dimnames=NULL), "fs.csv",sep =";", row.names=F, col.names=F) write.table(fs, file="fs.csv", append=T, sep="," row.names=T, col.names=F) As doing so, append will provide a solution by which avoid the problem of col.names. Cheers, Alessio ________________________________ Non stampare questa e-mail. Questo documento e' formato esclusivamente per il destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza a termini del vigente D.Lgs. 196/2003 in materia di privacy e quindi ne e' proibita l'utilizzazione. Se avete ricevuto per errore questo messaggio, Vi preghiamo cortesemente di contattare immediatamente il mittente e cancellare la e-mail. Grazie. Please don't print this e-mail. Confidentiality Notice - This e-mail message including a...{{dropped:9}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.