reshape2 is needed. Please install it with the command below. install.packages(reshape2)
run_analysis.R should be in the same directory as the "UCI HAR Dataset" folder. This directory should also be the working directory.
You can run the script using the command : source("run_analysis.R")
The script will create a data_submission_file.txt in your working directory. The R working directory will also contain 3 dataframes :
- full_data (the merge of the test set and the train set)
- mean_std_measurements (a subset of "full_data" that contains only mean and standard deviation columns)
- final_dataset (the independent tidy data set)