Giter Site home page Giter Site logo

gettingandcleaningdatacourseproject's Introduction

Getting and Cleaning Data Course- Final Project

Documents included in the GettingAndCleaningDataCourseProject repository

  1. CodeBook.md
  2. run_analysis.R
  3. step5table.txt
  4. README.md

Each document is described below

1) Codebook.md

Describes the source data, variables, and transformations that were loaded and performed in the R script "run_analysis.R".

2) run_analysis.R

Includes all the code used to load, clean, transform and write the final data, which is contained in the text file "step5table.txt". In summary, this script performs the following operations:

Initial steps:

  • load dplyr library
  • set working directory

To prepare tidy data set:

  • Incorporate train and test data sets and combine them by row
  • Incorporate feature data to label variables in data
  • Select variables that include the mean() and std() features in the combined data set and then remove the "()" from the variable names
  • Load and bind train and test activity label data, then match with class labels and replace with descriptive activity names
  • Load and bind train and test activity subject data
  • Create tidy data set by binding the activity label variable, subject variable, and the selected data set for mean and std variables

Clean global environment

  • remove all objects except the tidy data

Create second independent data set

  • create data set with the average of each variable for each activity and each subject and adding the string "average" at the beginning of each modified variable name
  • write a txt file with the second data set

3) step5table.txt

The final dataset that includes the variables activity, subject, and summary feature variables the indicate the average per activity per subject of specific measurements.

4) README.md

(current document) Describes the documents included in the GettingAndCleaningDataCourseProject repository, how they are connected and what they do/contain.

gettingandcleaningdatacourseproject's People

Contributors

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