Giter Site home page Giter Site logo

gettingandcleaningdata-project's Introduction

Assessments /Getting and Cleaning Data Course Project

The file describing how the script works.
*The data obtained from:
http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones
the data for the project:
https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
*steps:

  1. import library data.table
  2. the files are stored in directory named Dataset. Get X_train,y_train,subject_train from directory ./Dataset/train, and then get test data respectively.
  3. use rbind to merge the training and the test sets, and create one data set.
  4. read features from "./Dataset/features.txt"
  5. use setnames from data.table to set names of the dataset X_all
  6. use grep to get columns which names contain "mean" and "std"
  7. extract these columns and saved in X_all1
  8. read descriptive activity names from "./Dataset/activity_labels.txt", and use it to change y_all, and saved as y_all1.
  9. get the tidydata needed, and change their names appropirately.
  10. save tidydata to tidydata.txt
  11. use aggregate to get a new tidy data set with the average of each variable for each activity and each subject, name it tidymean
  12. save tidymean to tidymean.txt

gettingandcleaningdata-project's People

Contributors

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