Giter Club home page Giter Club logo

getting-and-cleaning-data-project's Introduction

Getting-and-Cleaning-Data-Project

Created a R script called run_analysis.R that does the following.

  1. Merges the training and the test sets to create one data set.
  2. Extracts only the measurements on the mean and standard deviation for each measurement.
  3. Uses descriptive activity names to name the activities in the data set
  4. Appropriately labels the data set with descriptive variable names.
  5. From the data set in step 4, creates a second, independent tidy data set with the average of each variable for each activity and each subject

Steps:

  1. Set local working directory using the "setwd" command to the folder that has the UCI HAR Data set.
  2. Install required packages (data.table, plyr, reshape2)
  3. Use "read.table" to read the training and test data
  4. Merge the files from step 3 into one data set. The columns are subject, activity (numeric code) and the associated data for each subject and activity
  5. Names each of the columns of the dataset. Extracted the features data set to use as the column names for the data
  6. Extracted the means and standard deviations from the data set
  7. Converted the activity numbers to activity labels
  8. Summarized the data by subject and activity and calculated the mean data vaules for each
  9. Wrote this summary data to a text file (tidy.txt)

getting-and-cleaning-data-project's People

Contributors

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