- Lines 1-9: read the data into seperate tables
- Lines 11-26: merge datasets with cbind, then rbind
- Lines 31-35: search variable names given by features.txt with "mean", "Mean", and "std"
- Lines 36-45: creates a vector of the columns to be extracted and extracts them into workingData data frame
- Lines 47-53: labels the variables by their feature name
- Lines 55-56: puts the Subject and Activity columns first
- Lines 60-63: melts and dcasts the data with the mean values calculated for each variable for each activity and each subject
- Lines 65-71: converts numerical values in activity column to descriptive activity names
- Lines 76-77: write the final data frame to TidyData.txt to the working directory containing the Samsung data
GreatScissors/WearableComputing_GettingandCleaningData
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|