GithubHelp home page GithubHelp logo

daweizhangau / datasciencecoursera-03 Goto Github PK

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

Getting and Cleaning Data Course Project

Home Page: https://www.coursera.org/learn/data-cleaning/peer/FIZtT/getting-and-cleaning-data-course-project

R 100.00%

datasciencecoursera-03's Introduction

About

The script run_analysis.R generates a tidy data set according to the requirements of Getting and Cleaning Data Course Project.

Dependencies

The script depends on R pacage 'dplyr', which will be installed automatically when it does not exist on your environment.

Input

You need to manually download the source file, unzip it to your work directory. The input data directory structure is like

  • $R_WORK_DIR/UCI HAR Dataset/
  • $R_WORK_DIR/UCI HAR Dataset/test
  • $R_WORK_DIR/UCI HAR Dataset/train

Only the following files under input data directory will be taken into account. All others will be ingored.

  • test/subject_test.txt
  • test/X_test.txt
  • test/y_test.txt
  • train/subject_train.txt
  • train/X_train.txt
  • train/y_train.txt
  • features.txt
  • activity_labels.txt

Output

The output is a data set file called "average_by_activity_subject.txt" under your work directory. The file can be read into a dataframe with the following code.

read.table("average_by_activity_subject.txt", header = TRUE)

Please read the Code Book for more information about the output.

datasciencecoursera-03's People

Watchers

Dawei Zhang 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.