The file run_analysis.R is the script for assembling and cleaning datasets data_tidy_19dec15.txt and data_tidy2_aggregated_19dec15.txt.
Dataset data_tidy_19dec15.txt contains the mean and standard deviation for each measurement. There are multiple observations for each subject and each activity.
Dataset data_tidy2_aggregated_19dec15.txt contains the average of the mean and standard deviation for each measurement for each subject and each activity.
The file CodeBook.md describes the data and the variables.