Practice: Export to a CSV File

Try this short exercise to practice exporting data in CSV and Excel format. This exercise does not count toward your grade. It is just for practice!

Exercise:

  1. Use the R dataset swiss (or any other dataset loaded in your R environment). 
  2. Save it in *.csv format by using the base-R function write.csv and the write_csv.
  3. Also, save the data in Excel format using the function write_excel_csv.
  4. Open the resulting files and compare.
Last modified: Friday, December 16, 2022, 12:00 PM