This repository contains the course assignment for the "Getting and Cleaning Data" module of the John Hopkins Data Science specialization on Coursera.org.
As part of the assignment a raw data file of Samsung smart phone data tests was processed to create a tidy data set.
The repository contains:
- an R script called run_analysis.R for reading the raw data and creating the tidy data set txt file
- a code book which describes the prepared txt file containing the tidy data set
More information about the data can be found at the following links. For information about how the data was produced: http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones
To download the raw data needed by the run_analysis.R programme: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
- 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 (e.g. WALKING, WALKING DOWNSTAIRS)
- 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.
- Download the Raw data from the above link and unzip it to your R working directory.
- Execute run_analysis.R
- A tidy data set will be prepared in the working directory in a file called AggregatedTidySamsungData.txt