Getting and Cleaning Data: Human Activity Recognition Using Smartphones Data Set
Companies like Fitbit, Nike, and Jawbone Up are racing to develop the most# advanced algorithms to attract new users. The data used represents data collected from the accelerometers # from the Samsung Galaxy S smartphone.
http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones
https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
- 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.
-
Load source("run_analysis.R")
-
tidy_data <- run_analysis() (returns tidy dataframe and writes output to txt file : tidy_data.txt)
-
tidy_data <- run_analysis()
-
"extracting only the measurements on the mean and standard deviation"
-
"STEP1: Loading Training and Test Datasets"
-
"downloading : UCI HAR Dataset.zip" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 59.6M 100 59.6M 0 0 46432 0 0:22:27 0:22:27 --:--:-- 129k
-
"extracting only the measurements on the mean and standard deviation"
-
"Step1: Loading Training and Test Datasets"
-
"Loading from: UCI HAR Dataset/train : 3 data file(s)"
-
"Loading from: UCI HAR Dataset/test : 3 data file(s)"
-
"Loading from: UCI HAR Dataset : 4 data file(s)"
-
"Step1: DONE"
-
"STEP2 : BEGIN"
-
"BEGIN: 2.1 Merge the training dataset"
-
Joining, by = "Activity_Id"
-
"DONE: 2.1 Merge the training dataset"
-
"BEGIN: 2.2 Merge the test dataset"
-
Joining, by = "Activity_Id"
-
"DONE: 2.2 Merge the test dataset"
-
"BEGIN: 2.3 Merge the training and the test sets to create one data set."
-
"DONE: 2.3 Merge the training and the test sets to create one data set."
-
"STEP2 : DONE"
-
"grouping by Activity and Subject" "summarise_all(funs(mean))"