Coder Social home page Coder Social logo

courseraweek4's Introduction

courseraweek4

Assignment for Week 4

This repo contains two files. The main script, run_analysis.R is the actual script to run to get and clean data as per assignment requests. It sources file week4lib.R, which needs to be in the working directory and defines the main function which loads and prepares data in a programmatic fashion, according to user input.

How to use

  • Import data files:
    • activity_labels.txt
    • features.txt
    • subject_*.txt
    • X_*.txt
    • y_*.txt
    • Note that these are the original file names and the scripts expect them.
  • Place files into a data directory of your choice within the scripts working directory (indicated by get_wd())
  • Specify directory name by assigning it to the DATA_DIRECTORY variable in run_analysis.R. Default is data.
  • Specify the file name suffix for the different data files. Default is train and test as found in the present data set. Could theoretically accomodate for further data sets from the same study.
  • Start the procedure by running/sourcing run_analysis.R
  • The results are data frame/data tables with different characteristics, as requested from the assignment: data, meansd_data and avg_data. Please see CodeBook.md for more information.

courseraweek4's People

Contributors

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