- Merge the training and the test sets to create one data set.
- Extract only the measurements on the mean and standard deviation for each measurement.
- Use descriptive activity names to name the activities in the data set
- Appropriately label the data set with descriptive activity names.
- Creates a second, independent tidy data set with the average of each variable for each activity and each subject.
- Download data from site: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
- Downloaded file has folder "UCI HAR Dataset"
- Create an R-Script in R-Studio and name it "run_analysis.R"
- Copy the entire script "run_analysis.R" from my repository and paste it in your newly created script, save the script
- Script "run_analysis.R" is a function that takes location of folder "UCI HAR Dataset" on your computer as an input parameter and create working directory
- Find the path to folder "UCI HAR Dataset" on your computer
- Run function "run_analysis.R" by passing this path as input parameter to function
- This function will create file TidyData.txt in the same "UCI HAR Dataset" folder
- This is the required output file as described in project objective
- To view the file run script: checkData <- read.table("TidyData.txt", header = TRUE); View(checkData)
- Codebook.md has step-by-step explnation on code and work performed to achieve all project objectives