This is the code to complete the Getting and Cleaning Data Course Project.
The objective of the Course Project is to manipulate the Human Activity Recognition Using Smartphones Data Set (http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones) to produce a tidy data set containing the average of all features grouped by subject and activity
- Features are normalized and bounded within [-1,1].
- As far as I could tell, the features have no units associated.
To generate the tidy dataset, follow the steps below (assuming you are running Mac/Linux)
- Download the input dataset
wget -q https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
- Unzip the file downloaded
unzip 'getdata%2Fprojectfiles%2FUCI HAR Dataset.zip'
- Run the run_analysis.R script
R -f run_analysis.R
The file Course.Project-Tidy.Dataset.txt will be created by the script, and it will contain the tidy dataset.
The run_analysis.R script requires the file read_dataset.R, which implements a function to read a given dataset (train or test, for example)