Code Monkey home page Code Monkey logo

coursera-getdata's Introduction

Getting and Cleaning Data: Project

This repo contains my solution for the course "Getting and Cleaning Data". The goal of the project is to generate a tidy data set, based on the original data from the "Human Acitvity Recognition Using Samrtphones" study.

Data

The study provides a train and test dataset, with the following details:

  • Subject - a number to identify an invidiual in the research (1 ~ 30)
  • Activity - an activity performed by the Subject (Walking, Standing, etc.)
  • Measurements - a list of measured parameters for each activity and subject (@see: Codebook.md for details)

In this project, we're only interested in Mean and Standard Deviation of the measurements.

Solution

The R-script run_analysis.R is written to parse the original data files, and generate a summarized version of it in a tidy format. It follows the following steps in order to achive the goal:

  1. Initilization (loading packages, etc.)
  2. Function definitions
  3. Load feature list for measurements
  4. Convert the feature list into R-friendly column names
  5. Load activity ids and labels
  6. Load Measurements, Subjects, and Activity for Train and Test data
  7. Extract only columns that are Mean and Standard Deviation
  8. Merge Measurements, Subjects, and Activity together
  9. Merge Train and Test data
  10. Summarize
  11. Generate the output file

coursera-getdata's People

Contributors

amirbehzad 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.