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 Dataset
should result. - Execute
run_analysis.R
withUCI HAR Dataset
as 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.sh
will run the R script usingR CMD BATCH
and redirect the output torun_analysis.csv
. It expects to be called from the project directory and requires the subdirectoryUCI HAR Dataset
to be there.