Read the y_test.txt into a table y_test_table.
Read the subject_test.txt into a table subject_test_table.
Read the X_test.txt into a table X_test_table.
Read the y_train.txt into a table y_train_table.
Read the subject_train.txt into a table subject_train_table.
Read the X_train.txt into a table X_train_table.
Read activity_labels.txt into a table activity_labels_table
Read features.txt into a features table features_table.
Convert numerical values of different activities in the y_test_table into the descriptive ones.
Convert numerical values of different activities in the y_train_table into the descriptive ones.
Combine all different test tables into one single table.
Combine all different train tables into one single table.
Combine the test table and the train table into a single final table with all the elements.
Turn features table into a vector of different features.
Change the first two columns of the final table into the more descriptive names.
Change the rest of the column names in the final table based on the features vector.
Subset the features vector with the values that only include "-mean()" substring.
Subset the features vector with the values that only include "-std()" substring.
The final set of features that includes only subject, activity, means, and standard deviations.
Create the final table that only contains the final features.