Coder Social home page Coder Social logo

project-getting-and-cleaning-data's Introduction

The script conducts jobs as following:

read the files in folder 'a1'b0UCI HAR Dataset/test using lapply and put the 3 data frame into list1

read the files in folder 'a1'b0UCI HAR Dataset/train using lapply and put the 3 data frame into list2

load the labels from activity_labels.txt and subject_text/train.txt

mutate the data frames of list1 and list2 together

put the labels into column names of the mutated data frame

extract the measurement on mean, both test data and train data, save into separated variables as result_test1 and result_train1

extract the measurement on standard deviation, both test data and train data, save into separated variables as result_test2 and result_train2

combine measurement on mean and Std together into result_test3 and result_train3

drop the measurement on meadFreq, saved into result_test4 and result_train4

merge train and test data, saved into result

replace the descriptive labels

write the data frame into .txt

project-getting-and-cleaning-data's People

Contributors

lgy-hz avatar

Watchers

James Cloos 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.