The R script run_analysis.R is provided to generate the summary data set in CSV form.
- Download the UCI HAR Dataset: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
- Unzip the file. A directory named
UCI HAR Datasetshould result. - Execute
run_analysis.RwithUCI HAR Datasetas the working directory. The CSV file is written to stdout.- Optionally the R script could be edited to write the CSV file to some location in the filesystem.
- On unix-like systems the shell script
./run_analysis.shwill run the R script usingR CMD BATCHand redirect the output torun_analysis.csv. It expects to be called from the project directory and requires the subdirectoryUCI HAR Datasetto be there.