-
Merges the training and the test sets to create one data set. Uses features.txt as descriptive measurement names.
-
Extracts only the measurements on the mean and standard deviation for each measurement. Uses regular expression "mean\(|std\(" to pick only mean and standard deviation measurements.
-
Uses descriptive activity names to name the activities in the data set. Uses activity_labels.txt as descriptive activity names.
-
Creates a second, independent tidy data set with the average of each variable for each activity and each subject. Uses aggregate function. Writes to newdat.txt.
thongsia / coursera-getting-cleaning-data Goto Github PK
View Code? Open in Web Editor NEWCoursera/Data Science/Getting and Cleaning Data