##Getting and Cleaning Data - Course Project
This repo contains files for the submission of the course project:
run_analysis.R
- the script used to process the data to get the tidy data setCodeBook.md
- describes all variables used in the scripttidy.txt
- the tidy data as the outcome of the script
The run_analysis.R
script does the following:
- Download and unzip the raw data if it's not found
- Read both the train and the test data sets respectively
- Merge both train and test data sets into single data set
- Read the feature names and map it to the columns of the data set
- Filter columns of the data set with the features that we want, the mean and std features
- Read the activity names and bind to the data set
- Bind subjects to data set
- Melt the data into narrow format
- Cast the melted data back into wide format, to get average of each variable for each activity and each subject.
- Output the tidy data as "tidy.txt"