This project is a peer assignment of 'Getting and Cleaning Data Course' in Coursera.
Before running the script( run_analysis.R), please download and unzip raw data from https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
Then using the following commands in OSX or Linux
cd /path/to/UCI\ HAR\ Dataset/
cp /path/to/run_analysis.R .
$ Rscript run_analysis.R
And you will get 3 files ouput:
tidy-1.txt
tidy-2-all.txt
tidy-2-mean_std_only.txt