JoshuaGross / CourseraGettingCleaningDataCourseProj

Coursera "Getting and Cleaning Data" data science course - course project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coursera - Getting and Cleaning Data - Course Project

Installation instructions

git clone git@github.com:JoshuaGross/CourseraGettingCleaningDataCourseProj.git

Usage

Rscript run_analysis.R

Review Criteria

  • The submitted data set is tidy.
  • The Github repo contains the required scripts.
  • GitHub contains a code book that modifies and updates the available codebooks with the data to indicate all the variables and summaries calculated, along with units, and any other relevant information.
  • The README that explains the analysis files is clear and understandable.
  • The work submitted for this project is the work of the student who submitted it.

run_analysis.R criteria

You should create one R script called run_analysis.R that does the following.

  • Merges the training and the test sets to create one data set.
  • Extracts only the measurements on the mean and standard deviation for each measurement.
  • Uses descriptive activity names to name the activities in the data set
  • Appropriately labels the data set with descriptive variable names.
  • From the data set in step 4, creates a second, independent tidy data set with the average of each variable for each activity and each subject.

Codebook

Measurement types

  • tBodyAcc-mean-X
  • tBodyAcc-mean-Y
  • tBodyAcc-mean-Z
  • tBodyAcc-std-X
  • tBodyAcc-std-Y
  • tBodyAcc-std-Z
  • tGravityAcc-mean-X
  • tGravityAcc-mean-Y
  • tGravityAcc-mean-Z
  • tGravityAcc-std-X
  • tGravityAcc-std-Y
  • tGravityAcc-std-Z
  • tBodyAccJerk-mean-X
  • tBodyAccJerk-mean-Y
  • tBodyAccJerk-mean-Z
  • tBodyAccJerk-std-X
  • tBodyAccJerk-std-Y
  • tBodyAccJerk-std-Z
  • tBodyGyro-mean-X
  • tBodyGyro-mean-Y
  • tBodyGyro-mean-Z
  • tBodyGyro-std-X
  • tBodyGyro-std-Y
  • tBodyGyro-std-Z
  • tBodyGyroJerk-mean-X
  • tBodyGyroJerk-mean-Y
  • tBodyGyroJerk-mean-Z
  • tBodyGyroJerk-std-X
  • tBodyGyroJerk-std-Y
  • tBodyGyroJerk-std-Z
  • tBodyAccMag-mean
  • tBodyAccMag-std
  • tGravityAccMag-mean
  • tGravityAccMag-std
  • tBodyAccJerkMag-mean
  • tBodyAccJerkMag-std
  • tBodyGyroMag-mean
  • tBodyGyroMag-std
  • tBodyGyroJerkMag-mean
  • tBodyGyroJerkMag-std
  • fBodyAcc-mean-X
  • fBodyAcc-mean-Y
  • fBodyAcc-mean-Z
  • fBodyAcc-std-X
  • fBodyAcc-std-Y
  • fBodyAcc-std-Z
  • fBodyAcc-meanFreq-X
  • fBodyAcc-meanFreq-Y
  • fBodyAcc-meanFreq-Z
  • fBodyAccJerk-mean-X
  • fBodyAccJerk-mean-Y
  • fBodyAccJerk-mean-Z
  • fBodyAccJerk-std-X
  • fBodyAccJerk-std-Y
  • fBodyAccJerk-std-Z
  • fBodyAccJerk-meanFreq-X
  • fBodyAccJerk-meanFreq-Y
  • fBodyAccJerk-meanFreq-Z
  • fBodyGyro-mean-X
  • fBodyGyro-mean-Y
  • fBodyGyro-mean-Z
  • fBodyGyro-std-X
  • fBodyGyro-std-Y
  • fBodyGyro-std-Z
  • fBodyGyro-meanFreq-X
  • fBodyGyro-meanFreq-Y

Activity type

  • LAYING: subject was laying down during the test.
  • WALKING: subject was walking on a flat surface during the test.
  • WALKING_UPSTAIRS: subject was walking upstairs during the test.
  • WALKING_DOWNSTAIRS: subject was walking downstairs during the test.
  • SITTING: subject was sitting down during the test.
  • STANDING: subject was standing still during the test.

Other

  • subject: the subject ID.
  • activity: the subject type.

About

Coursera "Getting and Cleaning Data" data science course - course project

License:MIT License


Languages

Language:R 100.0%