Code Monkey home page Code Monkey logo

peerassessment4's Introduction

READ ME

Progression of Code in run_analysis.R

  • First, the code reads the files in the UCI HAR Dataset folder.

  • Then, the column names are added to the test dataset.

  • An empty matrix is created to store the activity labels when they are added inside the matrix.

  • Once the for loop substitutes the number for the appropriate label, the subject and activity columns are labeled.

  • Lastly for the test matrix, the columns and dataset are combined into test_dataset.

  • Next, the training files are read into variables with column names.

  • Another empty matrix is made to substitute the activity labels for the training series of activity numbers.

  • Then, another for loop to substitute numbers for labels.

  • The train_dataset contains the combination of subject and activity columns with the training dataset.

  • The first dataset generated is the overall dataset with test and training data combined.

  • The second dataset finds the columns with mean or std of the features. Then, the dataset is made of just those columns with the subject and activity columns.

  • The third dataset splits just the test and training datasets by subject groups. Then, calculates the mean of those columns vs. subject groups.

  • The portion underneath the function call states the output of the three datasets: UCIdataset, UCIpull, and UCI_mean.

peerassessment4's People

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.