Giter Club home page Giter Club logo

gettingandcleaningdata's Introduction

Getting & Cleaning Data Course Project

This is the Course Project for Coursera's "Getting and Cleaning Data" course.

Installation:

  • Create a directory for this project, called samsung

  • Download the script run_analysis.R to samsung

  • Download the raw data from https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip to samsung and unzip it. You can delete the zip file after this step. Your directory structure should look like this now (only showing 2 levels deep here):

    ├── UCI HAR Dataset
      │   ├── README.txt
      │   ├── activity_labels.txt
      │   ├── features.txt
      │   ├── features_info.txt
      │   ├── test
      │   └── train
      └── run_analysis.R 
    

Dependencies:

The script run_analysis.R depends on the libraries plyr and reshape2.

To run the analysis:

  • Change the working directory in R to samsung (the installation directory)
  • Source the script run_analysis.R in R: source("run_analysis.R")
  • Execute the function DeriveAndWriteDataSets with no arguments:DeriveAndWriteDataSets(). Two datasets will be written to your working directory now: tidy1.csv and tidy2.csv
  • If you want to retrieve the datasets in R, without writing them to CSV-files, you can run tidy1 <- DeriveTidy1() tidy2 <- DeriveTidy2(tidy1)

Note that DeriveTidy2 uses the result from DeriveTidy1 as input. The objects tidy1 and tidy2 are of class data.frame.

Codebook

Information about the datasets is provided in CodeBook.md.

Code

The code contains detailed commments explaining the steps in which the original data was transformed to tidy1.csv and tidy2.csv

gettingandcleaningdata's People

Contributors

neerajhirani avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.