Giter VIP home page Giter VIP logo

getcleandataproject's Introduction

#Before you run the script This script uses the following R libraries:

  • plyr
  • dplyr

So BEFORE you run the script you must install these packages:

install.packages("plyr")

install.packages("dplyr")

#How to run this script Please follow these steps:

  1. Clone this repo or if preferred, create a working directory and download the script file run_analysis.R into it.

  2. Download the experiments dataset from this link: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip

  3. IMPORTANT NOTE: the .zip file must be unzipped inside the working directory.

  4. Source the run_analysis.R script:

source("run_analysis.R")

  1. Call the function readData("the_name_of_your_dataset_directory")

readData(directory) #directory is a string with the name of the directory of the dataset

  1. IMPORTANT NOTE: the function readData receives as a parameter the name of the directory in which the experiment dataset is located.

  2. Wait a little while the script runs (it might take a couple of minutes!)

  3. When the script ends, a file named summary_data.txt must has been created inside the working directory.

  4. The file mentioned in the step 8 is the end result required in the question number 5 of the project description.

getcleandataproject's People

Contributors

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