Giter VIP home page Giter VIP logo

run_analysis's Introduction

Final project for Getting and Cleaning Data

This repository contains three files: this README, a Codebook detailing given variables, and the run_analysis file itself which contains functions used for running an analysis of the data from the UCI dataset.

run_analysis.R

The run_analysis file downloads the data from the internet, then loads the different .txt files into data frames that are then manipulated and combined into a more readable format. The combined raw observational data is arranged by subject and activity and then trimmed to only mean and standard deviation of each observation. The remaining data is used to create a new summary table with only the mean of each variable for each subject and activity included. Both the summary table and trimmed raw data are saved into new files in the folder that was downloaded from the internet. The file names are 'condensed.txt' for the summary data and 'all_data.txt' for the trimmed raw data. All of this is only done when the run_analysis() function is called from the sourced run_analysis.R file. The actions taken when the function is called are overviewed in text printed to the console.

run_analysis's People

Contributors

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