GithubHelp home page GithubHelp logo

cleaning_data's Introduction

This file describes step by step how run_analysis.R script works. I have organized the script into three main parts as explained below:

1) Data preparation

- Downloaded the assignment data files from specified website into local working directory.

- Open the training dataset along with training label file in R

- Explore and check if the datasets are properly loaded into R

- Compile training dataset and training label file together using cbind command

- Open the test dataset along with test label file in R

- Explore and check if the datasets are properly loaded into R

- Compile test dataset and test label file together using cbind command

2) Merge training and test datasets

- There two variables with same variable names (“V1”) in training and test data files that comes from label data, we should rename variable that comes from label data as “activity”.

- Merge training and test datasets using rbind command named the merged dataset as “fullData”

- Check if the two datasets are properly merged using dim() command

3) Extracts only the measurements on the mean and standard deviation for each measurement

- Create a numeric vector (varNum) that will be used to extract means and standard deviation for each measurements

- Extract variables from “fullData” using for loop and varNum vector.

- Name extract dataset as “meanSdData”

4) Uses descriptive activity names to name the activities in the data set

cleaning_data's People

Contributors

ermi-bro 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.