##Course Project
###Assignment: Getting and Cleaning Data Course Project
The purpose of this assignment was to tidy a dataset and do some simple analysis on the dataset. The original source dataset can be found here HERE
These are the steps our run_analysis.R script executes:-
-
Merges the training and the test datasets to create one new dataset.
-
Extracts only the measurements on the mean and standard deviation for each measurement.
-
Uses descriptive activity names to name the activities in the dataset
-
Appropriately labels the dataset with descriptive activity names.
-
Creates a second, independent tidy data set with the average of each variable for each activity and each subject.
###Steps to work on this course project
-
Download the source data and put into your working directory. After unzipping the file you'll have a UCI HAR Dataset folder in which the datasets are found.
-
Put run_analysis.R in the parent-directory (SAME DIRECTORY) as the UCI HAR Dataset folder, then set it as your working directory using setwd() function from within R-Studio or from the R console.
-
Run source("run_analysis.R"), this script will tidy the main dataset and output the average of each variable for each
activity and each subject and tabulated the results tidydata.txt in your working directory.
###Dependencies
run_analysis.R script will load the dependencies for you. It requires libraries plyr and data.table to be installed.