Tidies the UCI HAR Dataset (smartphone accelerometer/gyroscope data) into a single averaged data set per subject and activity.
run_analysis.R: downloads and processes the data, producestidy_avg.txt.tidy_avg.txt: the tidy output (generated by the script, not included in the repo).CodeBook.md: describes the variables intidy_avg.txtand the transformations applied.
Open R in this directory and run:
source("run_analysis.R")The script downloads and unzips the raw dataset (if not already present), then:
- Merges the training and test sets into one data set.
- Extracts only the mean() and std() measurements.
- Uses descriptive activity names.
- Applies descriptive variable names.
- Creates
tidy_avg.txt: the average of each variable, per subject and activity.
See CodeBook.md for details on the resulting variables.