Skip to content

Latest commit

 

History

History
99 lines (90 loc) · 4.24 KB

CodeBook.md

File metadata and controls

99 lines (90 loc) · 4.24 KB

CodeBook for Tidy Data

Please read the README.md file provided in the repo first.

The tidy data set Contains 180 observations and 81 variables. The first column "Subject" indentifies the Subect and the second identifies the "Activity". The remaining 79 columns are the measures.

There were 30 subjects that participated in this study (identified in first column "Subject"). For each subject, there were measurements taken on 6 activities - these activites are identified as WALKING, WALKING_UPSTAIRS, WALKING_DOWNSTAIRS, SITTING, STANDING, LAYING (identified in the second column "Activity"). The remaining variables are the mean of the across all the measurements taken for a given Subject and Activity. Hence, there are 30*6 = 180 Subject/Activity combinations and each observation forms a row and are contained in the first two columns of the dataset. For this study, we were only interested in extracting the measurements on the mean and standard deviation for each measurement. Thus all the remaining 79 variables represent either the mean or standard deviation of the measurements that were taken for a given Subject/Activity combination. This is represented in the variable name by either containing "mean" or "std", for mean or standard deviation, respectfully. A complete listing of the variables is given below:

Note that

  • Each variable forms a column.
  • Each observation forms a row.
  • The tidy data set contains information on only one observational unit of analysis.

Variables in the tidy data set:

  • "Subject"
  • "Activity"
  • "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"
  • "fBodyGyro-meanFreq-Z"
  • "fBodyAccMag-mean"
  • "fBodyAccMag-std"
  • "fBodyAccMag-meanFreq"
  • "fBodyBodyAccJerkMag-mean"
  • "fBodyBodyAccJerkMag-std"
  • "fBodyBodyAccJerkMag-meanFreq"
  • "fBodyBodyGyroMag-mean"
  • "fBodyBodyGyroMag-std"
  • "fBodyBodyGyroMag-meanFreq"
  • "fBodyBodyGyroJerkMag-mean"
  • "fBodyBodyGyroJerkMag-std"
  • "fBodyBodyGyroJerkMag-meanFreq"