GithubHelp home page GithubHelp logo

gettingandcleaningdata_courseproject's Introduction

Getting And Cleaning Data: Course Project

Merges the training and the test sets to create one data set.

After downloading and reading in raw datasets, i use cbind and rbind to combine the following six files.

  • train/subject_train.txt
  • train/X_train.txt
  • train/y_train.txt
  • test/subject_test.txt
  • test/X_test.txt
  • test/y_test.txt

I did not include a seperate column for data source (i.e., train/test), because it can be telled from subject id.

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

I only keep columns with "mean()" and "std()", that results 33*2=66 colomns.

Uses descriptive activity names to name the activities in the data set.

It can be easily done by replace activity id from file "train/y_train.txt" and "test/y_test.txt" by labels from file "activity_labels.txt".

Appropriately labels the data set with descriptive variable names.

I think names like "fBodyBodyGyroJerkMag-mean()" is descriptive enough, and also quite long already, and there is not need to expand it. I just remove "-" and "()" and capitalize word "mean" and "std".

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.

This can be done with function "summarise_each" from "dplyr" package.

gettingandcleaningdata_courseproject's People

Contributors

bladeralien avatar

Watchers

 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.