Skip to content

alishak1999/Getting-and-cleaning-data

Repository files navigation

Getting and cleaning data project

  • This repository contains the submission for the assignment for week 4 of Getting and Cleaning Data Coursera course.
  • First, download and unzip the data file into your R working directory.•Second, download the R source code into your R working directory.
  • Finally, execute R source code to generate tidy data file.

Data & Function description

The variables in the data X are sensor signals measured with waist-mounted smartphone from 30 subjects. The variable in the data Y indicates activity type the subjects performed during recording. The code combined training dataset and test dataset, and extracted partial variables to create another dataset with the averages of each variable for each activity.

Result

The new generated dataset contained variables calculated based on the mean and standard deviation. Each row of the dataset is an average of each activity type for all subjects.

The code was written based on the instruction of this assignment

The R script called run_analysis.R does the following:

  • Merges the training and the test sets to create one data set.
  • Extracts only the measurements on the mean and standard deviation for each measurement.
  • Uses descriptive activity names to name the activities in the data set
  • Appropriately labels the data set with descriptive variable names.
  • From the data set in the previous step, creates a second, independent tidy data set with the average of each variable for each activity and each subject.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages