Skip to content

Latest commit

 

History

History
117 lines (110 loc) · 3.1 KB

codebook.md

File metadata and controls

117 lines (110 loc) · 3.1 KB

#This code book summarizes the resulting data fields in data_tidy.txt

##Data Fields:

##Identifiers

  • subject - The ID of the test subject
  • activity - The type of activity performed when the measurements were taken

##Measurements

  • tBodyAccMeanX
  • tBodyAccMeanY
  • tBodyAccMean
  • tBodyAccStdX
  • tBodyAccStdY
  • tBodyAccStdZ
  • tGravityAccMeanX
  • tGravityAccMeanY
  • tGravityAccMeanZ
  • tGravityAccStdX
  • tGravityAccStdY
  • tGravityAccStdZ
  • tBodyAccJerkMeanX
  • tBodyAccJerkMeanY
  • tBodyAccJerkMeanZ
  • tBodyAccJerkStdX
  • tBodyAccJerkStdY
  • tBodyAccJerkStdZ
  • tBodyGyroMeanX
  • tBodyGyroMeanY
  • tBodyGyroMeanZ
  • tBodyGyroStdX
  • tBodyGyroStdY
  • tBodyGyroStdZ
  • tBodyGyroJerkMeanX
  • tBodyGyroJerkMeanY
  • tBodyGyroJerkMeanZ
  • tBodyGyroJerkStdX
  • tBodyGyroJerkStdY
  • tBodyGyroJerkStdZ
  • tBodyAccMagMean
  • tBodyAccMagStd
  • tGravityAccMagMean
  • tGravityAccMagStd
  • tBodyAccJerkMagMean
  • tBodyAccJerkMagStd
  • tBodyGyroMagMean
  • tBodyGyroMagStd
  • tBodyGyroJerkMagMean
  • tBodyGyroJerkMagStd
  • fBodyAccMeanX
  • fBodyAccMeanY
  • fBodyAccMeanZ
  • fBodyAccStdX
  • fBodyAccStdY
  • fBodyAccStdZ
  • fBodyAccMeanFreqX
  • fBodyAccMeanFreqY
  • fBodyAccMeanFreqZ
  • fBodyAccJerkMeanX
  • fBodyAccJerkMeanY
  • fBodyAccJerkMeanZ
  • fBodyAccJerkStdX
  • fBodyAccJerkStdY
  • fBodyAccJerkStdZ
  • fBodyAccJerkMeanFreqX
  • fBodyAccJerkMeanFreqY
  • fBodyAccJerkMeanFreqZ
  • fBodyGyroMeanX
  • fBodyGyroMeanY
  • fBodyGyroMeanZ
  • fBodyGyroStdX
  • fBodyGyroStdY
  • fBodyGyroStdZ
  • fBodyGyroMeanFreqX
  • fBodyGyroMeanFreqY
  • fBodyGyroMeanFreqZ
  • fBodyAccMagMean
  • fBodyAccMagStd
  • fBodyAccMagMeanFreq
  • fBodyBodyAccJerkMagMean
  • fBodyBodyAccJerkMagStd
  • fBodyBodyAccJerkMagMeanFreq
  • fBodyBodyGyroMagMean
  • fBodyBodyGyroMagStd
  • fBodyBodyGyroMagMeanFreq
  • fBodyBodyGyroJerkMagMean
  • fBodyBodyGyroJerkMagStd
  • fBodyBodyGyroJerkMagMeanFreq

##Activity Labels

  • Walking (v1): subject was walking during the test
  • Walking_Upstairs (v2): subject was walking up a staircase during the test
  • Walking_Downstairs (v3): subject was walking down a staircase during the test
  • Sitting (v4): subject was sitting during the test
  • Standing (v5): subject was standing during the test
  • Laying (v6): subject was laying down during the test

##Information about the experimental study design used description of how collected the data

  1. Merging the training and the test sets to create one data set
  • Reading training tables
  • Reading testing tables
  • Reading features vector
  • Reading activity labels
  • Assigning column names
  • Merging all data in one dataset
  1. Subsetting the measurements on the mean and standard deviation for each measurement
  • Reading column names
  • Create vector for defining ID, mean and standard deviation ignoring letter case
  • Making nessesary subset from the merged data
  1. Using descriptive activity names for the activities in the data set
  2. Appropriately labeling the data set with descriptive variable names
  3. Creating a second, independent tidy data set with the average of each variable for each activity and each subject
  • Making second tidy data set
  • Writing second tidy data set in txt file