https://github.com/zyuanlim/gettingcleaningdata_project
https://github.com/zyuanlim/gettingcleaningdata_project
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zyuanlim/gettingcleaningdata_project
- Owner: zyuanlim
- Created: 2014-10-26T10:35:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-26T11:17:24.000Z (over 10 years ago)
- Last Synced: 2025-01-16T15:43:26.644Z (5 months ago)
- Language: R
- Size: 145 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GettingCleaningData_project
===========================## Readme
The script starts with loading the required library and setting the work directory.
Then, it reads the training and testing txt files, each consisting of subject, class
label and feature variables data.After reading the data into the respective data frame, it merges them into training
and test data frames separately, then both data frames into one whole data frame.It then runs the following process:
1) point 1: Merges the training and the test sets to create one data set
2) reads the descriptive variable names into a data frame
3) extracts indexes of variables which contain mean() and std() from the data frame
4) point 2: Extracts only the measurements on the mean and standard deviation for each measurement
reads the activity names into a data frame
5) point 3: uses descriptive activity names to name the activities in the data set
6) point 4: appropriately labels the data set with descriptive variable names
7) point 5: creates a second, independent tidy data set with the average of each variable for each activity and each subject.
8) writes the tidy data set from point 5 into txt file