Giter Club home page Giter Club logo

getting_and_cleaning_data's Introduction

#Getting and Cleaning Data - Course Project

Basic structure of run_analysis.R

The script assumes that there is folder datasets with the Samsung data in the working directory. Afterwards, the script follows the assignment requirements.

  1. Read train and test datasets - the following datasets are read:
    • activity_labels.txt
    • features.txt
    • test/subject_test.txt
    • test/X_test.txt
    • test/y_test.txt
    • train/subject_train.txt
    • train/X_train.txt
    • train/y_train.txt

The datasets in test/Inertial Signals/ and train/Inertial Signals/ are not read as we do not need them for the analysis.

  1. Steps 2 - extracting measurements on the mean and standard deviation, merging the test and train datasets and naming the variables with more descriptive names. Here I have assumed that by measurements on the mean and standard deviation for each measurement it is meant columns that contain one of the strigns mean() or std(). For example, that implies that fBodyAcc-mean()-X is included and fBodyAcc-meanFreq()-X is not as the latter is weighted average of the frequency components. Merging is done via rbind() because it is simple and it does not reorder the rows.

  2. Step 3, which is adding descriptive activity names to name the activities in the dataset, is done next.

  3. The last step is creating new tidy data set with the average of each variable for each activity and each subject, and saving that data set in output.txt.

getting_and_cleaning_data's People

Contributors

dobrinpetkov avatar

Watchers

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