The purpose of this project is to demonstrate your ability to collect, work with, and clean a data set. The goal is to prepare tidy data that can be used for later analysis.
The run_analysis.R script perform the following actions on the data collected from the accelerometers from the Samsung Galaxy S smartphone:
- 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.
- Uses descriptive activity names to name the activities in the data set
- Appropriately labels the data set with descriptive activity names.
- Creates a second, independent tidy data set with the average of each variable for each activity and each subject.
More information in the codebook
- Download the raw data set
- Unzip the content of the zip file in a directory named:
data
- Place the
run_analysis.R
in the parent directory - Run the
run_analysis.R
script - The script will create the tidy data file named
tidy.txt