This is the course project for the Getting and Cleaning Data Coursera course.
The R script, run_analysis.R
, does the following:
- Loads the table of variables ("features") and creates vector with descriptive names
- Loads the training & test datasets and merges them into a single dataset
- Load the activity and feature info for training & test and merges them into a single dataset
- Loads the subject dataset
- It selects only those columns of the which contain a mean value or standard deviation
- It merges subject, activity data and the selected columns into a single dataset
- Creates a dataset "Summary_tbl" that contains the average of each variable for each activity and each subject in a separate row.
- It saves the result in the file "tidy_data.txt".