The repository is composed of three files : README.md, CodeBook.md and run_analysis.R
- We first check if the "UCI HAR Dataset" is in the same folder as the script is.
- We then read the two datasets ("X_test.txt" and "X_train.txt") and we merge them.
- The next step is to select the columns with variable names containing "mean" and "std" and to associate the proper variable names on top of it.
- Then we get the activities and merge them to the dataset (from "y_test.txt" and "y_train.txt")
- Almost there ! The script imports the subjects used for the observations (from "subject_test.txt" and "subject_train.txt") and adds them to the dataset
- It then groups the dataset by subjects and activities, and calculates the mean for each column and finally saves the result in the working directory