This repo contains my course project to Coursera "Getting And Cleaning Data" course that is part of Data Science specialization.
Per requirements - only one script was created: run_analysis.R. The script contains all code necessary to generate required file. General flow is following:
- Download UCI HAR zip file to
datadir - Read data files
- Transform data
- Generate output data to a .tab file in a current folder
The CodeBook.md contains more details as well as the code in the script contains detailed remarks.
-
Clone this repo
-
Run the script:
$ Rscript run_analysis.R -
Look for the result dataset in current folder
result.tab -
Read the file into R using following command:
read.table("result.tab", header=TRUE)
Open RStudio project file GettingAndCleaning.Rproj.