Skip to content
Peer Assessments /Getting and Cleaning Data Course Project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
train
.gitattributes
.gitignore
CodeBook.md
README.md
README.txt
activity_labels.txt
features.txt
features_info.txt
run_analysis.R
tidy.txt

README.md

Running the script

  • Clone this repository
  • Download the data set and extract. It should result in a UCI HAR Dataset folder that has all the files in the required structure.
  • Change current directory to the UCI HAR Dataset folder.
  • Run Rscript <path to>/run_analysis.R
  • The tidy dataset should get created in the current directory as tidy.txt
  • Code book for the tidy dataset is available here

Assumptions

  • The training and test data are available in folders named train and test respectively.
  • For each of these data sets:
    • Measurements are present in X_<dataset>.txt file
    • Subject information is present in subject_<dataset>.txt file
    • Activity codes are present in y_<dataset>.txt file
  • All activity codes and their labels are in a file named activity_labels.txt.
  • Names of all measurements taken are present in file features.txt ordered and indexed as they appear in the X_<dataset>.txt files.
  • All columns representing means contain ...mean() in them.
  • All columns representing standard deviations contain ...std() in them.
You can’t perform that action at this time.