Code Monkey home page Code Monkey logo

course_proyect's Introduction

Read Me

After you download and unzip the database, before to use the "run_analysis.R" script you need follow this steps:

  • load the packages "dplyr" and "reshape2" (use "install.packages()" & "library()" functions)
  • define your work directory like "./UCI HAR Dataset"

Then, the "run_analysis.R" script works this way:

Read data

Read the data and load it in R from useful .txt files (train, test, features, activity)

Merge Data

Merge the train, test, features and activity data to obtain one dataframe which contains all the data

Extract Mean & Std from measurements

Select only the data of the variables with "Mean" and "Std" words in their names

Mean of each variable for each activity and each subject

First group_by the data in order the useful variables (Subject and Activity) to then calculate the mean of each other variables

Change and Order the Names

Assign the respective Activity in order to Label Index Change same parts of column names replacing for others ("." to ""; "BodyBody" to "Body"; etc)

Output

Export the tidy data to .txt file

course_proyect's People

Contributors

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