This is the course project for the Getting and Cleaning Data Coursera course.
The R script, run_analysis.R
, does the following:
- Download the dataset if it is not already existing in your working directory
- Load the activity, features
- Load both training and test data
- Loads the activity and subject data followed by merging operation
- Merges the two datasets above metioned
- Converts the
activity
andsubject
columns into factors - Creates a tidy dataset that consists of the mean value of each of the variables for every subject and activity pair.
output dataset = "tidy_new.txt" file