This repository contains three items required for the course project:
- README.md
- Codebook
- run_analysis.R
- Tidy data set
This file
The Codebook contains:
- A description of each of the variables, including units
- Information about the transformations that performed to clean up the data
This script assumes that the raw data from the Human Activity Recognition Using Smartphones is downloaded and unzipped in the working directory along with run_analysis.R.
The HAR project data is described at: http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones
The raw data to download and unzip is at: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
- Download the HAR dataset
- Unzip the dataset
- Ensure that the unzipped directory 'UCI HAR Dataset' is in your working directory, along with run_analysis.R
This script performs the following tasks:
- 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
- Labels the data set with descriptive variable names.
- Creates a tidy data set with the average of each variable for each activity and each subject.
- Outputs tidy data set to a text file with variable names.
A text file called tidy.txt, with space delimited and the first row with variable name. Running the script in the same directory with the raw data will output this tidy data set.
This file was uploaded along with this URL or the link below during the assignment submission. https://s3.amazonaws.com/coursera-uploads/user-862a3cd51db0a30af66b94fd/975114/asst-3/d4231e40327211e5a5c9af88f10bd9a7.txt