title: Save R file to a csv file that is organized like an excel spreadsheet
body: <p>I have loaded in my dataset "my dataset", added some new variables, and now wish to save it in my working directory as a csv file. </p>
  
  <p>if I use write.table(my.data, file="newdata.csv", na=""), I get a spreadsheet that is not is not separated properly. I would like my variables along the top, and my values separated by columns according to those variables. </p>
  
  <p>I have had trouble interpreting the R helppage on write.table, and would like to know which arguments I should enter so that my data can be written appropriately. </p>