I have created a script in R named run_analysis.R
- There is data at the following location:
- The data is from a study titled: Human Activity Recognition Using Smartphones Data Set
For each record in the dataset it is provided:
- Triaxial acceleration from the accelerometer (total acceleration) and the estimated body acceleration.
- Triaxial Angular velocity from the gyroscope.
- A 561-feature vector with time and frequency domain variables.
- Its activity label.
- An identifier of the subject who carried out the experiment.
Inside the folder /UCI HAR Dataset/ from the above zip file above is a README.txt file that explains more about the contents.
run_analysis.R performs the following functions on the data found in the zip file and collected in the study
- Merges the training and the test sets to create one data set.
- 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.
- 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.