Getting and Cleaning Data Course Project

run_analysis.R performs the following:

Merges the training and the test sets to create one data set. Extracts only the measurements on the mean and standard deviation for each measurement. Uses descriptive activity names to name the activities in the data set Appropriately labels the data set with descriptive activity names. Creates a second, independent tidy data set with the average of each variable for each activity and each subject.

run_analysis.R

It loads the train and test data sets and appends the two datasets into one data frame. This is done using rbind. It extracts just the mean and standard deviation from the features data set. This is done using grep. After cleaning the column names, these are applied to the x data frame. After loading activities data set, it converts it to lower case using tolower and removes underscore using gsub. activity and subject column names are named for y and subj data sets, respectively. The three data sets, x, y and subj, are merged. The mean of activities and subjects are created into a separate tidy data set which is exported into the Result folder as txt file; this is named average.txt.