Skip to content

nagnag/GetAndCleanData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README: Samsung Galaxy Accelerometer Application Data Analysis

For the course Getting and Cleaning Data

The purpose of this project is to produce a tidy data set from accelerometer information as below.

The data is accelerometer information from a test among 30 subjects using the Samsung Galaxy smartphone app which measures physical activity.

https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip

In summary, the run_analysis.R script...

  1. Downloads and unzips the appropriate data file into a working directory
  2. Converts the raw data into R data frame objects
  3. Merges the train and test data into a single files for analysis
  4. Appends the subject ID to the appropriate row of data
  5. Changes the data column names to descriptive names
  6. Changes the activity data to descriptive names
  7. Produces an aggregated tidy data file of activities by subject

Steps to reproduce this project

  1. Open the R script run_analysis.r in edit mode using preferred editor.
  2. Amend the setwd function call to the working directory/folder (i.e., the folder where these the R script file is saved) as appropriate.
  3. Run the R script run_analysis.r

It produces the following output which is a tab-delimited file with a tidy data set -

ActivityMeasurementUsingSmartPhone.txt (tab-delimited text)

About

For the course Getting and Cleaning Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors