The file name is run_analysis.R The script is essentially a series of commands that are run within the working directory. So first you unzip the data files, then you start running the script line by line WITHIN that directory Each line of data processing has appropriate comments within the code, so this README does not contain those details.
After processing is over the temporary variables are removed
At the end of the script, the write.table function is used to create the tidy data in final.txt file