Skip to content

OldMindFlayer/GetAndCleanDataCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting-and-Cleaning-Data-Course-Project

script "run_analysis.r"

*1) Check the "./CourseProject" directory and (if False) creat it

*2) Download and unzip data file

  1. Read data and creating datasets in variables:
    [1] "subject_test"
    [2] "subject_train"
    [3] "X_test"
    [4] "X_train"
    [5] "Y_test"
    [6] "Y_train"
    [7] "activity_labels"

  2. Change variable names of subject and activity dataframes to "subject" and "activity" respectively

  3. Combine [1-6] dataset to form one, witch store in variable "Combo"

  4. create a list of variable names and store in variable "n"

  5. select variables in dataset "Combo", witch contain Mean and SD values, and "subject" and "activity" variables, and store them in the dataframe named "ComboMS"

  6. change values of "activity" variable from numbers to activity labels from "activity_labels" dataset

  7. apply discriptive variable names to the "ComboMS" dataframe

  8. arrange "ComboMS" dataframe by "subject" and "activity" variables

  9. create data set with the average of each variable for each activity and each subject, and store it in "ComboGS" dataframe, which is tiby data

  10. creation of tiny_data file (.txt) in the working directory

*this steps are in code with # simble

About

Getting and Cleaning Data Course Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages