Giter VIP home page Giter VIP logo

cleaningdata's Introduction

Getting and Cleaning Data Course Project

In this project we clean up and summarize data from the Human Activity Recognition Using Smartphones Data Set into a tidy dataset.

The run_analysis.R script executes in the following sequence:

  1. Reads in all the reference data consisting of column names and activity names.
  2. Reads in the test data set, adds test subjects, labels the columns and activity names as appropriate.
  3. Reads in the training data set, adds test subjects, labels the columns and activity names as appropriate.
  4. Merges the test and training data sets into one data frame.
  5. Selects the mean and the standard deviation measures.
  6. Summarizes an average for each selected measure by subject and activity name.
  7. Writes out the final result to summary.txt.

Instructions and notes:

  • Use source('run_analysis.R') to execute the analysis script.
  • To read summary.txt back into the environment use read.table("summary.txt", header = TRUE).
  • For details on the contents of summary.txt review the codebook provided.
  • The resultant data is tidy because each observation is a row and each variable is a column.

Acknowledgement:

Many thanks to David Hood for his clarifications on the assignment's instructions.

cleaningdata's People

Contributors

falbukrek avatar

Watchers

 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.