11 Writing to .CSV File
Reminders: R is picky in its notation; you need to distinguish between upper/lower case. There are many ways of doing the same thing in R.
Type the code provided below in a R script to see the results. Typing is better than copying the code, as you might make a mistake in typing that allows you to learn how to debug your coding.
This chapter assumes that you have data in your workspace in R.
Once you create data frames, you may want to save the output to an external file. One easy way to do save the data is with a write.csv() command.