Giter Club home page Giter Club logo

get_clean_d's Introduction

run_analysis.R

  • goal is to take data from 'Human Activity Recognition Using Smartphones Dataset' and tidy it up providing an average per subject per activity for the mean and std of each measured value in the original dataset

  • original data found at: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip

  • more info about original data found at: http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones

  • The main steps are:

    • load all data from test, and train sets
    • replace column names with column names taken from the features.txt file in the original data
    • replace dashes and brackets in the column names to simplify them
    • keep just the data columns that have mean or std of the measurements
    • join the data from the train and test sets
    • replace activity ids with lowercase activity names
    • summerize the data by taking the mean for each column for each subject/activity combination
  • to use:

    • get the original data
    • set working directory to the location of the original dataset
    • source run_analysis.R
    • the tidy variable will give you the averaged data
    • for getting the cleaned data before the averaging you can run loadAllData()

enjoy!

Script By:

Yaniv Ben-Zaken, [email protected] as part of a coursera 'getting and cleaning data' course at: https://class.coursera.org/getdata-005

from the original license for the data:

License:

Use of this dataset in publications must be acknowledged by referencing the following publication [1]

[1] Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra and Jorge L. Reyes-Ortiz. Human Activity Recognition on Smartphones using a Multiclass Hardware-Friendly Support Vector Machine. International Workshop of Ambient Assisted Living (IWAAL 2012). Vitoria-Gasteiz, Spain. Dec 2012

This dataset is distributed AS-IS and no responsibility implied or explicit can be addressed to the authors or their institutions for its use or misuse. Any commercial use is prohibited.

Jorge L. Reyes-Ortiz, Alessandro Ghio, Luca Oneto, Davide Anguita. November 2012.

get_clean_d's People

Contributors

ybz avatar

Watchers

 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.