wearable

Created: 2014-05-18 18:01
Updated: 2016-11-21 08:45
r

README.md

wearable

Wearable accelerometer analysis

All the real work is in wearable_project_log.Rmd

See my Codebook.md for a description of the contents of the output files

Instructions to reproduce my work

  1. Clean out your environment
  2. Load and run the file run_analysis.R. This will define a function run_analysis and a few auxiliary functions.
  3. Download the Samsung data. It comes in a file called UCI HAR Dataset.zip.
  4. Save it by itself in a fresh directory. No need to unzip!
  5. setwd() to that directory in R
  6. Say run_analysis() and admire the progress messages (I hope!) and ignore the warnings.

You will get a lot of progress messages. There are also some warnings in the final phase of the analysis, the calculation of aggrgates, which I haven't been able to eliminate but which are harmless.

At the end, you should have the following files:

File Contents
UCI_HAR_means.csv Dataset stripped down to just the -means() and -std() features
UCI_HAR_summary.csv Dataset further summarized to averages over subject and activity

Note on interpretation of the assignment

I assumed the instruction Extracts only the measurements on the mean and standard deviation for each measurement meant to select only the columns corresponding to features ending in -mean() and -std(). These come in pairs, one of each. There are also features like fBodyBodyGyroJerkMag-meanFreq() and angle(Z,gravityMean) that seem differently specied. If it were necessary to include them, the place to make the necessary changes is highlighted in run_analysis.R

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more