The script does the following
1) Merges the training and the test sets to create one data set.
2) Extracts only the measurements on the mean and standard deviation for each measurement.
3) Uses descriptive activity names to name the activities in the data set
4) Appropriately labels the data set with descriptive variable names.
5) From the data set in step 4, creates a second, independent tidy data set with the average of each variable for each activity and each subject.
#Structure of repository -directory/data, contains all files needed for evaluation by run_analysis.R -README.md, this file. -codebook.md, contains the description of variables produced by run_analysis.R -run_analysis.R, is the R script that produces the tidyData.txt file -tidyData.txt, is the file generated by run_analysis.R, which contains the reshaped data set processed from /data
#Running the run_analysis.R script 1) create a directory on your local machine 2) change working directory to the one you created 3) clone this repository https://github.com/vasba/GettingAndCleaningData 4) change working directory to GettingAndCleaninigData directory 5) start R 6) check with getwd() that you are in GettingAndCleaninigData directory under the cloned repository 7) source("run_analysis.R")
#How the script run_analysis.R works See the coments inside the script to follow the script actions.