Giter VIP home page Giter VIP logo

datacleaning's Introduction

Course Project for Getting and Cleaning Data

This repository contains three items required for the course project:

  • README.md
  • Codebook
  • run_analysis.R
  • Tidy data set

README

This file

Codebook

The Codebook contains:

  • A description of each of the variables, including units
  • Information about the transformations that performed to clean up the data

run_analysis.R

This script assumes that the raw data from the Human Activity Recognition Using Smartphones is downloaded and unzipped in the working directory along with run_analysis.R.

The HAR project data is described at: http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones

The raw data to download and unzip is at: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip

Steps to use run_analysis.R

  • Download the HAR dataset
  • Unzip the dataset
  • Ensure that the unzipped directory 'UCI HAR Dataset' is in your working directory, along with run_analysis.R

Mission of the script

This script performs the following tasks:

  • Merges the training and the test sets to create one data set.
  • Extracts only the measurements on the mean and standard deviation for each measurement.
  • Uses descriptive activity names to name the activities in the data set
  • Labels the data set with descriptive variable names.
  • Creates a tidy data set with the average of each variable for each activity and each subject.
  • Outputs tidy data set to a text file with variable names.

Tidy data set

A text file called tidy.txt, with space delimited and the first row with variable name. Running the script in the same directory with the raw data will output this tidy data set.

This file was uploaded along with this URL or the link below during the assignment submission. https://s3.amazonaws.com/coursera-uploads/user-862a3cd51db0a30af66b94fd/975114/asst-3/d4231e40327211e5a5c9af88f10bd9a7.txt

datacleaning's People

Contributors

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