Project repository for coursera "Getting and Cleaning Data" course
run_analysis.R, README.md, CodeBook.md, tidy_dataset.txt
- run_analysis.R - the project solution
- README.md - this file
- CodeBook.md - a code book that describes the variables, the data, and any transformations or work that is performed to clean up the data called.
- tidy_dataset.txt - the output generated by the program
Dependencies: data.table, dplyr, tidyr
-
Get the repository files: [beccyl/getdata_project] (https://github.com/beccyl/getdata_project) git clone https://github.com/beccyl/getdata_project.git
-
Install data files: UCU HAR Dataset Download, unzip and place the raw data files in the project working directory. The program assumes the raw data files start in "./UCI HAR Dataset/"
-
To run the program, launch R, and source("run_analysis.R") The tidy_dataset.txt file will be generated when run.
-
To read the output file (tidy_dataset.txt) back into R - you can run the following in R:
library(dplyr)
data <- read.table("tidy_dataset.txt", header = TRUE)
View(data)
(David's Course Project FAQ) [https://class.coursera.org/getdata-011/forum/thread?thread_id=69]