- First, use data.table package, read X_train.txt and features.txt to tables, take value from features table to make column names for X_train table.
- Read file y_train.txt with column name is "activity"
- join two tables above (X_train and y_train) to make trainData table
- Similar like train data, make testData.