The R codes stored in "run_analysis.R" helps to clean the UCI HAR Dataset. It takes the following steps:
- Step 1. Create train table (read.csv files and cbind command);
- Step 2. Create test table (read.csv files and cbind command);
- Step 3. Combine train and test tables (rbind command);
- Step 4. Join labels.
- Step 1. split data by subjects (split command);
- Step 2. create index numbers for subject and activities;
- Step 3. calculate mean for each activity in a given subject (tapply);
- Step 4. combine subject and activity indexes with means.