Changes write.csv to write.table