In this assigment we have created a script that does the following:
- Downloads a dataset from the following URL:
https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
-
Merges the subjects, the activities, the training dataset and the test dataset to create one data set with the name "merged_test_dataset".
-
Extracts only the measurements on the mean and standard deviation for each measurement, from the columns that contains "mean" or "std", together with the subjects and the activities.
-
Uses descriptive activity names to name the activities in the data set with the following transformations:
-
Appropriately labels the data set with descriptive variable names.
-
From the data set in step 4, creates a second, independent tidy data set with the average of each variable for each activity and each subject.
The script is available in a file with the name "run_analysis.R" and the results have been saved into a file with the name "final_dataset.txt".