Skip to content

Repository consisting of the R script and codebook for (Coursera) Getting And Cleaning Data course's peer reviewed assignment.

Notifications You must be signed in to change notification settings

Spider101/Getting-And-Cleaning-Data-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting-And-Cleaning-Data-Project

This repository consists of the R script and codebook for (Coursera's) Getting And Cleaning Data course's peer reviewed assignment.

Overview

This project is a demonstration of a data cleaning pipeline as taught in the Getting and Cleaning Data course on Coursera.

The R script works on the datasets found in the UCI HAR Dataset and performs the following steps:

  1. Merge the training and the test sets to create one data set.
  2. Extract only the measurements on the mean and standard deviation for each measurement.
  3. Use descriptive activity names to name the activities in the data set
  4. Appropriately label the data set with descriptive variable names.
  5. From the data set in step 4, create a second, independent tidy data set with the average of each variable for each activity and each subject.

The Codebook.md file provides information about the variables in the tidy dataset that cannot be inferred from the dataset itself, lists the transformations performed on the original dataset to get the tidy dataset and describes how the original dataset was collected and the choice of variables to be used in the tidy dataset. The codeBookGen.html provides summary information about the variables in the tidy dataset. There is a link to it in the markdown file under the Code Book section.

Notes for using the repository

The R script downloads the dataset, unzips and stores it in a subdirectory called data in your working directory. So, after cloning the repository or downloading the source files directly, simply run source("run_analysis.R") and the tidy dataset will created and stored in the data subdirectory mentioned earlier.

About

Repository consisting of the R script and codebook for (Coursera) Getting And Cleaning Data course's peer reviewed assignment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published