-
How to run the analysis?
- Ensure the R-script "run_analysis.R" and the data folder ("UCI HAR Dataset" - download and extracted from "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip") are located in the same folder.
- Set the current working directory to the folder where the R-script and the data reside
- Run the code by "source" in the R-script
-
Output:
- Upon successful execution, "tidyData.txt" is created under the current directory which contains an independent tidy data set with the average of each variable for each activity and each subject
-
The R-script "run_analysis.R" does the following steps in sequence:
- Read-in test, training, activities, and subject data sets
- Assign descriptive activity names to activities inside the test and train data sets
- Label the data sets' headers with descriptive variable names and select the variables of mean and standard deviation ones
- Extracts only the measurements on the mean and standard deviation for each measurement. Merge test and training sets into a joint data set along with their corresponding activities and subjects
- From the joint data set, to create a second, independent tidy data set with the average of each variable for each activity and each subject. Then write to file "todyData.txt" in current directory
-
Notifications
You must be signed in to change notification settings - Fork 0
shuchihlin/getting-cleaning-data-project
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Repository for codes in support of the "Getting and Cleaning Data" Coursera course project.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published