Skip to content

rparmar75/GettingAndCleaningData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

"Getting And Cleaning Data" Assignment

The Assignment

Create one R script called run_analysis.R that does the following.

  1. Merges the training and the test sets to create one data set.
  2. Extracts only the measurements on the mean and standard deviation for each measurement.
  3. Uses descriptive activity names to name the activities in the data set
  4. Appropriately labels the data set with descriptive activity names.
  5. Creates a second, independent tidy data set with the average of each variable for each activity and each subject.

Files

  • README.md: This document
  • CodeBook.md: Codebook describing variables, data, and transformations
  • run_analysis.R: R code

Steps

  1. Run source("run_analysis.R").
  2. The script creates "data" folder under the current working directory, that is "./data".
  3. The script downloads the data (a zip file) and unzips files under the "./data" folder.
  4. The script loads data from various text files, merges, and aggregates data as appropriate.
  5. Finally, a tidy data file, tidy.txt, is written under the current working directory.

Dependencies

run_analysis.R uses dplyr and data.table packages. The script installs them if not already installed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages