This is the course project for the Getting and Cleaning Data Coursera course.
The R script, run_analysis.R
, does the following:
- Create directory if it does not already exist.
- Download data and unpack it.
- Load the data, activity, feature for test and training dataset.
- Joining test and training data.
- 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.
- Create tidy data set with the average of each variable for each activity and each subject.
Finaly, results saved in text file final.txt
with command write.table(..., row.name=FALSE)
.