The script run_analysis.R
is used for the analysis. It performs the following steps:
- Downloads and unzips the 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.
- Uses descriptive activity names to name the activities in the data set.
- Appropriately labels the data set with descriptive variable names.
- From the data set in step 4, creates a second, independent tidy data set with the average of each variable for each activity and each subject.
The tidy data set generated in Step 5 above is included in this repository as
human_activity_recognition.txt
. The codebook is provided as
codebook.pdf
.
The script was run using
R version 3.2.3 Patched (2015-12-17 r69782)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)
.
It uses two libraries: dplyr_0.4.3
and magrittr_1.5
.