Skip to content

weiweiweizhu/CourseraGettingandCleaningData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CourseraGettingandCleaningData

This file is to explain my understanding of the data. This project uses the data in test and train file to show the activites of the volunteers.

Data description

There are 30 volunteers use a sensor to record data in data x , and the activity name is in data y.

Code description

The code was written based on the instruction of this assignment

  1. Read training and test dataset into R environment. Read variable names into R envrionment. Read subject index into R environment.
  2. Merges the training and the test sets to create one data set. Use command rbind to combine training and test set
  3. Extracts only the measurements on the mean and standard deviation for each measurement. Use grep command to get column indexes for variable name contains "mean()" or "std()"
  4. Uses descriptive activity names to name the activities in the data set Convert activity labels to characters and add a new column as factor
  5. Appropriately labels the data set with descriptive variable names. Give the selected descriptive names to variable columns From the data set in step 4, creates a second, independent tidy data set with the average of each variable for each activity and each subject. Use pipeline command to create a new tidy dataset with command group_by and summarize_each in dplyr package

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages