Course Project
This is a coure project for the getting and Cleaning Data in the Data Science Specialization offered by JHU.
For the project, four files are provided in the repository:
- run_analysis.R
- CodeBook.md
- ReadMe.md
- tidy_set.txt
Here are the steps for creating a tidy dataset:
- Read the filepaths and relevant files into R
- Subset the test and train set and use rbind() command to merge them
- Extract the terms with 'mean' and 'std'
- Change the variable ('activity') into factors
- Summarize the average of each variable based on each subject and the corresponding activities
- Save the final result as a txt file