Chapter 7 Creating your first script
A script can be broken down into a few layers which we are going to go through in detail, but here’s a general overview.
- Load/install required packages
 - Load your data
 - Perform data wrangling tasks
 - Then what?
- create figures
 - run statistics
 - create tables
 
 - Save outputs
 
Figures are saved in your /images directory, whereas the statistics and tables are saved in /data for future use. Each section is coded so that I can fold/unfold a given section. This allows me to only focus on the section of code that is important at that given point and time.