This repository contains an R script, run_analysis.R, that analyzes data collected from the accelerometers of the Samsung Galaxy S smartphone.
- Loads required packages.
- Reads the relevant files into R.
- Merges the training and test datasets.
- Extracts the mean and standard deviation measurements.
- Assigns descriptive activity names to the activities dataset.
- Labels the dataset with descriptive variable names.
- Merges subject, activity, and features data.
- Creates a tidy dataset with the average of each variable for each activity and subject.
- Writes the tidy dataset to a text file.
For more info about the variables, please refer to the CodeBook.md file.