Practicing Using the R Scripts

We'll practice using the R script for a categorical explanatory variable and quantitative response variable. Follow these steps:

  • download this R script and save it in your scripts/ folder
  • download this sample data set and save it in your data/ folder
  • launch your project using your RProject file
  • open the R `script from within RStudio
  • follow the instructions provided earlier for working with the script - setting up variable names etc - and run ALL code in the script
    • the boxplot should be automatically saved to your figures/ folder.
    • the results of your descriptive statistics and statistical analyses should be automatically save to your report/ folder.