Skip to content

This repo contains files for my final assignment from my Coursera course Getting and Cleaning Data

Notifications You must be signed in to change notification settings

harshhn/Getting_and_Cleaning_Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Getting and Cleaning Data - Course Project

Goal

One of the most exciting areas in all of data science right now is wearable computing. Companies like Fitbit, Nike, and Jawbone Up are racing to develop the most advanced algorithms to attract new users. The data linked to from the course website represent data collected from the accelerometers from the Samsung Galaxy S smartphone.

A full description is available at the site where the data was obtained: http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones

Here are the data for the project: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip

Script walkthrough

The run_analysis.R script does the following.

  1. Set up the required data (if it is not available).
  2. Merges the training and the test sets to create one data set.
  3. Extracts only the measurements on the mean and standard deviation for each measurement.
  4. Uses descriptive activity names to name the activities in the data set
  5. Appropriately labels the data set with descriptive variable names.
  6. 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.

How to create the tidy data set

  1. Install dplyr package (if you dont have it already) by running install.packages('dplyr').
  2. Execute the script using the command source('run_analysis.R').
  3. The code will generate the tidy.txt dataset.

About

This repo contains files for my final assignment from my Coursera course Getting and Cleaning Data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages