Skip to content

harishrongala/Data-wrangling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Getting and cleaning Human Activity Recognition data

Dataset: https://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones


Script name: run_analysis.R


Developed by:

Harish K. Rongala

harishrongala@gmail.com


run_analysis.R script consists of 9 steps

  1. Download data set from internet and extract to working directory

  2. Read training and testing data

  3. Combining data and renaming variable names

  4. Giving descriptive activity names to name the activities in data set

  5. Extracting only measurements on mean() and std()

  6. Giving fully descriptive names to the variables in the data set

  7. Merging training and test data in to one data set

  8. Calculate average of each variable for combination of 'subjectid' and 'activity'

  9. Export tidy data set


-> Place 'run_analysis.R' in your R working directory

-> Run the script

-> Output file 'tidyDataset.txt' is created in "UCI HAR Dataset" folder

-> To read the data - use the following command

      > data<-read.table("./tidyDataset.txt",header=TRUE)

About

Submitted for Coursera Certification

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages