- README.md --> This file
- codebook.md --> Description of the tidy dataset
- run_analysis.R --> R script that produces the file 'tidy.txt'
The script will download and unzip dataset into the working directory and produce file 'tidy.txt'
- Distribution of R
- Installed data.table package
- Installed tools package
- Internet Connection
- Run R studio or R console
- Save the file 'run_analysis.R' into directory that you want to work in
- Set the directory containing 'run_analysis.R' as the working directory.
- (Optional) If you already dowloaded the zip file with data from https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip, rename it to 'data.zip' and save it into working directory. The script will skip the dowload of file if it finds it in the working directory.
- Type 'source("run_analysis.R")' into the console and press enter
- Wait while the script works (can take up to several minutes, depending on your inetrnet connection and PC)
- After the script finishes, file 'tidy.txt' should be in your working directory. You can load it into R using the 'read.table("tidy.txt")' command.
- Works correctly in Windows enviroment
- Not tested on Mac and various Linux distributions, if the automatic download does not work please try the step marked as 'Optional'