##Readme
The script (run_analysis.R) does the following;
-
Merges the training and the test sets to create one data set.
-
Extracts only the measurements on the mean and standard deviation for each measurement.
-
Uses descriptive activity names to name the activities in the data set
-
Appropriately labels 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.
- Create a folder name "project" and place run_analysis.R in this folder.
- In "project" folder, create a sub folder name "data".
- Download the data for the project via this link and unzip it into the folder "data"
- Open the run_analysis.R in R Studio and set the working directory. Refer to the code sample below, this is assume that the "project" folder will be place in the C drive root directory.
setwd("C:/project/")
-
Execute the script in R Studio
-
After successful execution, the script will create 2 file in the root directory, which are means-data.txt and merged-data.txt.
- merged-data.txt contains the appropriately labels the data set with descriptive variable names
- means-data.txt contains the independent tidy data set with the average of each variable for each activity and each subject