Describing how the script works
First, downlaod the data from https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip Ensure both the folder "UCIHARDataset" and the run_analysis.R script are in the current working directory. Then, use source("run_analysis.R") command in R. You will find the output file ( tidyData_with_average.txt) generated in the working directory
====================