GithubHelp home page GithubHelp logo

kampamocha / har_means Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 132 KB

Data set with mean measurements by activity and subject of the Human Activity Response Using Smartphones data set

R 100.00%

har_means's Introduction

title output
Getting and Cleaning Data Course Project
html_document

This file describes the script "run_analysis.R" used to summarize the "Human Activity Recognition Using Smartphones Data Set" downloaded from http://archive.ics.uci.edu/ml/machine-learning-databases/00240/UCI%20HAR%20Dataset.zip.

Input

The input is readed from the following files:

  • subject_train.txt
  • y_train.txt
  • X_train.txt
  • subject_test.txt
  • y_test.txt
  • X_test.txt
  • features.txt
  • activity_labels.txt

Process

The script reads the train and test sets of the activity recognition data, then combine both data sets to produce a unique data set selecting the columns associated with the measurements mean and standard deviation. As output the script summarizes those measurements by activity and subject. To library reshape2 is necessary to perform grouping and summarization of the variables.

The outline is the following:

  • Join the train and test data selecting only the variables for mean and standard deviations estimations
  • Replace activity numbers with descriptive activity names
  • Summarize variable means by activity and subject

Output

The output is a tidy data set with 180 observations containing the mean of 64 measurement variables grouped by activity and subject in the file har_means.txt.

har_means's People

Contributors

kampamocha avatar

Watchers

 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.