This repository is used for the assignment submission of Getting and Cleaning Data
- run_analysis.R
- result_data.txt
- README.md
- CodeBook.md
The R script run_analysis.R does the following steps,
-
- Load the subject and activity information.
-
- Load subject and activity data for test and training.
-
- Load measurement data for each dataset, only keep the required variables/columns for mean and standard deviation.
-
- Merge data with subject, activity and measurement.
-
- Merge test and training datasets.
-
- Change the variable/column name from abbreviation to descriptive names
-
- Convert 'subject' and 'activity' to factors.
-
- Create a new data set for the average of each variable for each activity and each subject.
-
- Save the result in the file 'result_data.txt'
Code Book is in file 'CodeBook.md'