Giter Club home page Giter Club logo

gettingandcleaningdatacourseproject's Introduction

README

Transform Raw Data From The Human Activity Recognition Using Smartphones Data Set To Tidy Data

The run_analysis.R process first reads in tables: activity_labels.txt, features.txt, features_info.txt, X_train.txt, y_train.txt, subject_train.txt, subject_test.txt, X_test.txt, and y_test.txt. The tables are then merged; the subejct train and test are merged into the subject table, y train and y test are merged as the activity table, and x train and x test are merged as the features table. The column names of subjects and activity are changed to be more readable, and the features table's columns are changed to be more readable by using the features.txt file. The columns of subject and activity are appended using 'cbind' to the features table. A subset of the table is then taken of all the measurements by 'mean' and 'std'(standard deviation). The activity type is then clarified by changing integer values of the activity to names from the activity_labels.txt table. The column names are then made to be more readable, for example t=Time. Finally, the process takes a mean of each variable by subject and activity using aggregate, this is then output as tidydataset.txt.

gettingandcleaningdatacourseproject's People

Watchers

James Cloos avatar

Forkers

danjeffrey

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.