Skip to content

This is the Tidy Data repository for the Getting and Cleaning Data course project through Coursera and JHU.

Notifications You must be signed in to change notification settings

cdo03c/Tidy_Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tidy_Data R Script Version 1.0

To run, download the script, load it into R, and type run_analysis(). The script will do the rest and the tidy_data.txt will appear in your data folder in the working directory.

This repository contains a R Script, final data set, code book, and README for the Getting and Cleaning Data course project through Coursera and Johns Hopkins University.

The run_analysis.R script downloads and unzips (if it doesn't already exist in your working directory) a data set collected from the accelerometers from the Samsung Galaxy S smartphone. A full description is available at the site where the data was obtained:

http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones

The run_analysis.R script creates a tidy, well labeled data set consisting of all thirty subjects, the six types of activities that were tracked by the accelerometers, and only the variables that contains mean or standard deviation observations. Lastly, the run_analysis.R script calculates the average for each variable based for each subject for each activity.

For each record it is provided:

  • Its subject label.
  • Its activity label.
  • A 79-feature vector with average mean and standard deviation variables.

The dataset includes the following files:

  • 'README.md'

  • 'run_analysis.R': script for processing the accelerometer data into a clean data set.

  • 'tidy_data.txt': The final data set produced by the run_analysis.R script.

  • 'code_book.txt': Shows information about the variables used in the run_analysis.R script.

Notes:

  • The run_analysis.R script takes a few minutes to run because it was written with effectiveness and not efficiency in mind.

For more information about this dataset contact: [email protected]

About

This is the Tidy Data repository for the Getting and Cleaning Data course project through Coursera and JHU.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages