Skip to content

hahustat/Getting-and-Cleaning-Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting and Cleaning Data Course Project

It uses Human Activity Recognition Using Smartphones Dataset Version 1.0

To Uses descriptive activity names to name the activities in the data set

  • uses names() to describe the activity names of variables feature, activities

    To Merges the training and the test sets to create one data set.

    • uses rbind() to merge Y_test and X_test, and store in **merged_activity **
    • it uses merge() and cbind() to create total_Merged_Data.

    To Extracts only the measurements on the mean and standard deviation for each measurement

    • uses grep("mean\(\)|std\(\)", features$feature_Label) to extract variables with mean and std on the column names
    • gsub("\(|\)", "", names(Merged_with_Mean_Std)) removes () from variable names

    To create independent tidy data set from the merged data set with mean and std variables

    • uses tbl_df function from dplyr package

    • uses group_by function to group the data set by activity_Label, subject_Id

    • Then, for each separted data set it summarizes all variables using mean

    • Finally, exports and save a data set with a name tidy_mean_std.txt

About

Assignment of Getting and Cleaning Data course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published