This is the README file for Coursera's Getting and Cleaning Data Course Project.
The one script that needs to be run is run_analysis.R
Note that the first line of the script
setwd("~/Documents/Dev/R/CourseraCleaningData/CourseProject/")
should be changed to fit the needs of the user. The working directory should be set such that the first folder below it is the UCI HAR Dataset folder
The main steps are as follows:
- Read in all the data sets
- Column bind both the training and test sets respectively
- Row bind the full training and test sets
- Swap out activity numbers for actual activity descriptions
- Select only the columns that refer to means and standard deviatiosn
- Tidy up the column names to be more uniform
- Group the data by Subject_Number and Activity
The code book for this repo can be found HERE