R code for run_analysis.R