2.7 Save Your Work
Make sure you save your workspace and your code, especially your code. With your code, you can always regenerate your workspace but it could take a little time. Having your workspace saved allows you to start where you left off, with all of the variables you created and renamed saved.
Your code (in your script window) is saved by clicking the SAVE button in the RStudio menu bar. The code will be saved in the working directory. See 2.1 for setting and getting the working directory.
Do not overwrite the original data set and variables. Be sure, just in case you make a mistake, not to overwrite the data set that you know is good. Create new data sets just to be sure, especially when taking a subset from that data set.