Giter Club home page Giter Club logo

gettingandcleandata's Introduction

General Information This repo contains the code to clean and tidy the data obtained from: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip

Running the script

  1. Create a folder, and download this script.
  2. Download the archived dataset and extract to newly folder created in the previous step. The UCI HAR Dataset folder is extracted, and it has all the files in the required structure.
  3. Run Rscript run_analysis.R
  4. Two datasets should get created in the current directory as tidy_dataset.txt, and tidy_dataset_avgs.txt
  5. Code book for the tidy dataset is available in the repo.

Script Output Sample of the output from script is below:

[1] "Loading libraries: plyr, reshape2"
[1] "Loading the data labels and get the required labels"
[1] "Loading the training data"
[1] "Loading the testing data"
[1] "Subsetting to only the mean and standard deviation columns"
[1] "Merging all the data types for the training data"
[1] "Merging all the data types for the testing data"
[1] "Merge the training and testing data into one dataset"
[1] "Add an activity name for each record"
[1] "Create the tidy dataset, and save it locally"
[1] "Create the other dataset for the averages, and save it locally"

gettingandcleandata's People

Contributors

asemradhwi avatar

Watchers

 avatar James Cloos 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.