Skip to content
Prev 294381 / 398503 Next

Help with writing data to csv

Well, the function write.csv() is a wrapper for write.table() and it means just what it says, write CSV (i.e. Comma Separated Value), so you can't change the separator.  If you want to use a tab separator, then you need to use write.table() directly.  

That being said, what was the result of the output of the very first command that you said you used?

write.csv(practice, file.choose(new=T), quote=F, row.names=F)

I used the built-in data frame, cars, instead of your file practice and it worked just fine in producing a comma separated value file.

Dan

Daniel Nordlund
Bothell, WA USA