Git Product home page Git Product logo

getdata-course-project's Introduction

=================================

Getting and Cleaning Data Course Project

Final submission for peer review

=================================

File list:

  • README.md - this file
  • run_analysis.R - R script for cleaning "UCI HAR Dataset"
  • codebook.md - codebook that describes dataset that is created for step 5

Testing 'run_analysis.R' script:

  • Place 'run_analysis.R' script at same level as "UCI HAR Dataset"
  • Use setwd() command to set your working directory to script location. (example: setwd("~/R/getdata-012/course_project"))
  • source("run_analysis.R")
  • "tidy_data" folder will be created, which will contain "step_5_tidy_data.txt"
  • "step_5_tidy_data.txt" was the dataset submitted on Coursera for part 1

Psuedo-code of "run_analysis.R".

How the Samsung dataset "UCI HAR Dataset" gets converted to a tidy dataset 
as specified in Step 5 of the course project instructions. 
    1. Import feature.txt. Extract feature names with only mean() or std() for each measurement
    1. Import X data. Subset X for mean & std data
    1. Import subject data
    1. Import y data
    1. Import activity labels for y data
    1. Combine tables together into mean & std tables (data still messy)
    1. Convert mean & std tables to tidy data
    1. Merge to combine std data into mean table
    1. Check for merging errors
    1. Replace activity_id with descriptive activity name
    1. Creating second tidy data set, with the average of each variable for each activity and each subject
    1. Save the tidy data sets to .txt files

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

getdata-course-project's People

Contributors

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