https://github.com/justmarkham/coursera-getting-data
Class project for Coursera's "Getting and Cleaning Data" class
https://github.com/justmarkham/coursera-getting-data
Last synced: 9 months ago
JSON representation
Class project for Coursera's "Getting and Cleaning Data" class
- Host: GitHub
- URL: https://github.com/justmarkham/coursera-getting-data
- Owner: justmarkham
- Created: 2014-04-19T19:23:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-19T20:18:35.000Z (over 11 years ago)
- Last Synced: 2024-11-02T09:51:33.755Z (about 1 year ago)
- Language: R
- Size: 191 KB
- Stars: 10
- Watchers: 3
- Forks: 63
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Class Project for "Getting and Cleaning Data"
The class project for [Getting and Cleaning Data](https://www.coursera.org/course/getdata) was to read in the ["Human Activity Recognition Using Smartphones" data set](http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones), perform an analysis on the data set, and output a tidy data set.
**Here are the steps that must be performed before running the R script:**
1. Download the zip file from [this URL](https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip).
2. Unzip the file.
3. Move ALL of the following files to the SAME DIRECTORY as the R script:
* `features.txt`
* `subject_train.txt`
* `subject_test.txt`
* `X_train.txt`
* `X_test.txt`
* `y_train.txt`
* `y_test.txt`
**Once those steps are complete, you can run the R script ([run_analysis.R](run_analysis.R)).** Note that it requires the [reshape2 package](http://cran.r-project.org/web/packages/reshape2/index.html), which can be downloaded from CRAN.
**The output of the R script is a tidy data set, [tidy.csv](tidy.csv).**
You can read more about the data and the analysis in the [code book](CodeBook.md).