Download the srouce data file from https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip and unzip it into local driver, e.g.: D:\Data Geting and Clearning\UCI HAR Dataset
Download run_analysis.R file into the same folder. e.g.:D:\Data Geting and Clearning\UCI HAR Dataset\run_analysis.R
Start R and set work directory as the folder which contain "run_analysis.R" e.g.: setwd("D:\Data Geting and Clearning\UCI HAR Dataset")
type source("run_analysis.R") to execute the script to do data processing.