You should create one R script called run_analysis.R that 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 variable names.
- Creates a second, independent tidy data set with the average of each variable for each activity and each subject.
-
Clone this repo by typing in your console (not R console)
git clone https://github.com/qstyler/c03-gacd.git -
Source your
run_analysis.Rby either providing full path to the file, or setting your working directory (setwd()) to the repo root folder. -
Download course project dataset to your working directory and unzip it. Either manually or by calling
get_data()function in your R console. -
Call
run_analysis()to gettidy_data.txtfile in your working directory.
Data file tidy_data.txt and UCI HAR Dataset folder are ignored by git.