Cleaning a Dataset using R

Objective:

To clean two unclean datasets i.e training and testing dataset along with a dataset containing labels. Calculate their mean and standard deviation and merge the two datasets wih labels dataset. Merge the two datasets i.e training and testing dataset to create a final clean dataset.

Procedure Followed:

Loaded files in R studio
Substituted the training and testing data with appropriate activity labels
Added provided column names to training and testing dataset
Merged the label dataset with testing dataset
Merged the label dataset with training dataset
Use grep command to find mean and std dev columns from the data set and created a subset
Merged the two datasets using rbind
Used aggregate function to create final dataset