Skip to content

RxCodeLab/Peer-graded-Assignment-Getting-and-Cleaning-Data-Course-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting and Cleaning Data - Course Project

Tidies the UCI HAR Dataset (smartphone accelerometer/gyroscope data) into a single averaged data set per subject and activity.

Files

  • run_analysis.R: downloads and processes the data, produces tidy_avg.txt.
  • tidy_avg.txt: the tidy output (generated by the script, not included in the repo).
  • CodeBook.md: describes the variables in tidy_avg.txt and the transformations applied.

How to run

Open R in this directory and run:

source("run_analysis.R")

The script downloads and unzips the raw dataset (if not already present), then:

  1. Merges the training and test sets into one data set.
  2. Extracts only the mean() and std() measurements.
  3. Uses descriptive activity names.
  4. Applies descriptive variable names.
  5. Creates tidy_avg.txt: the average of each variable, per subject and activity.

See CodeBook.md for details on the resulting variables.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages