Here is the data set for the analysis on Human Data to be done https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
This is the R code to do the above data cleaning
This file explains about every step involved in doing the clearning of the data. Every steps and variables defined in the above run_analysis.R is explained here in this file.
This is the final - clean data found as a result of running the above analysis.