Code Monkey home page Code Monkey logo

getdata-courseproject's Introduction

Getting and Cleaning Data - Course Project

Prepared by Amperio; last version created Thu May 18 20:45:32 2014

Description of the working of the script

The 'run_analysis.R' script performs the following tasks:

  1. Checks whether the required files and directories exist in the folder in which the script is placed (for this, a number of literal of character strings with the names for these files and directories are created; the script throws an error and stops execution if nay are missing, indicating where the error was produced)

  2. Reads the data from the activities, subjects and sensor readings, both from the training and test datasets

  3. Merges the data and provides names for the activities in the sensor readings, as determined from the activity files information

  4. Subsets the data, extracting only the subject id's, the activity names and the sensor readings for those variables considered 'core' (basically leaving out derived calculations, both from deriving data from these 'originals' or from transforming them into the frequency domain)

  5. It also performs some tidy-up of the variable names, to make them conforming to 'commonly accepted R-standards'

  6. This first subset is written to a external file, creating the 'first tidy data set'.

  7. Means by subject and activity are calculated over this data set

  8. Resulting data is written to a separate 'second tidy data set'.

getdata-courseproject's People

Contributors

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