This is the course project for Coursera: Getting and Cleaning Data course. The R script, run_analysis.R, does the following:
-
- Download the data from https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip.
-
- Unzip the file and put in on desktop.
-
- Run the run_analysis.R in RStudio.
-
- One can use addional code: write.table(mergedata, "C:/Users/Edward Wang/Desktop/mergedata.txt", sep="\t") and write.table(mergedata.m.std, "C:/Users/Edward Wang/Desktop/mergedata.m.std.txt", sep="\t") to generate two data files on desktop.
-
The end result is shown in the file mergedata.txt and mergedata.m.std.txt.