This repository hosts the R code and documentation files for the "Getting and Cleaning Data Course" project.
Human Activity Recognition Using Smartphones
CodeBook.md
describes all the variables and summaries calculated, along with units, and all transformations and steps that was performed to get, clean up and tidy the data.
run_analysis.R
performs data acquisition and takes the following steps to tidy it:
- 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.
tidy_data.txt
is the output file of the run_analysis.R
script, a independent tidy data set with the average of each variable for each activity and each subject.