Giter Site home page Giter Site logo

cleaning_and_getting_data_programming_assignment's Introduction

Cleaning and Getting Data Course Programming Assignment

The task of the course programming assignment is an analysis of sensors (accelerometer and gyroscope) data generated from experiments with Samsung Galaxy S II smartphones. The experiment details can be found in references 1, 2 and 3.

Within this course programming assignment there was an R script 'run_analysis.R' created that does the following:

  • Part I: Merges the training and the test sets to create one data set.
  • Part II: Extracts only the measurements on the mean and standard deviation for each measurement.
  • Part III: Uses descriptive activity names to name the activities in the data set.
  • Part IV: Appropriately labels the data set with descriptive variable names.
  • Part V: From the data set in step IV, creates a second, independent tidy data set with the average of each variable for each activity and each subject.

The last data set is saved to the 'run_analysis_output.txt' file.

The Programming Assignment includes the following files

  • 'README.md' - this file with course programming assignment description.
  • 'run_analysis.R' - R script that does data manipulating.
  • 'CodeBook.md' - Describes the experiment data variables and the steps taken to obtain final result.
  • 'run_analysis_output.txt' - Output file generated by the run_analysis.R script.

Structure of the data files

The path to the data from smartphone sensors (folder 'UCI HAR Dataset') must be defined in the variable 'data_Location' in the script 'run_analysis.R'. The current version of the script must be placed at the same location as 'UCI HAR Dataset' folder

The folder 'UCI HAR Dataset' structure is meant to be following:
 |-- activity_labels.txt
 |-- features_info.txt
 |-- features.txt
 |-- README.txt
 |-- test
 |   |-- Inertial Signals
 |   |   |-- body_acc_x_test.txt
 |   |   |-- body_acc_y_test.txt
 |   |   |-- body_acc_z_test.txt
 |   |   |-- body_gyro_x_test.txt
 |   |   |-- body_gyro_y_test.txt
 |   |   |-- body_gyro_z_test.txt
 |   |   |-- total_acc_x_test.txt
 |   |   |-- total_acc_y_test.txt
 |   |   |-- total_acc_z_test.txt
 |   |-- subject_test.txt
 |   |-- X_test.txt
 |   |-- y_test.txt
 |-- train
     |-- Inertial Signals
     |   |-- body_acc_x_train.txt
     |   |-- body_acc_y_train.txt
     |   |-- body_acc_z_train.txt
     |   |-- body_gyro_x_train.txt
     |   |-- body_gyro_y_train.txt
     |   |-- body_gyro_z_train.txt
     |   |-- total_acc_x_train.txt
     |   |-- total_acc_y_train.txt
     |   |-- total_acc_z_train.txt
     |-- subject_train.txt
     |-- X_train.txt
     |-- y_train.txt

References

cleaning_and_getting_data_programming_assignment's People

Contributors

igivis7 avatar

Stargazers

 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.