From the data from the study of Human Activity Recognition Using Smartphones Data Set, generate mean values of the measurement of the mean and standard deviation features grouped by (subject, activity).
See http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones) for the study.
- Download https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip and unzip it to your working directory. Make sure UCI HAR Dataset folder is created.
- Change the working directory to UCI HAR Dataset
- Place run_analysis.R script in the directory.
- In R console, change the wd to the directory and run
source("run_analysis.R")
, it may take a few seconds
- Result view of mean values of each variable (grouped by subject, activity) in R.
- Result file means.txt is created in the directory.