This repository includes submission materials for the Coursera JHU Getting and Cleaning Data project.
The script run_analysis.R
gets smartphone sensor data and cleans it according to the following steps:
- Download data if doesn't exist locally
- Unzip data if hasn't been previously unzipped
- Read data files
- Merges the training and the test sets to create one data set
- Extracts only the measurements on the mean and standard deviation for each measurement
- Resolves the activity for each measurement according to the activity name
- Refactors the variables names to be legible
- Creates a tall and skinny dataset that displays the mean signal value for each participant and activity combination
The output of the script is the file tidy_data.txt
.