Steps to produce output:
- Initializing libraries (reshape2)
- Reading in resources that will be used for both training and testing datasets (activity labels, and variable names)
- Reading and preparing datasets (training and testing)
- Read dataset
- Naming columns
- Adding subjectIds
- Adding activity labels
- Add the rows of the two datasets
- Subset the columns of the dataset to include only mean and sd data
- Recode activity labels to text
- Melt data by subjectId and activityId
- Cast melted data to get mean and sd of variables
- Save data with the mean of variables
- Output data with the mean of variables