#Getting and Cleaning Data Course Project
This is the project for the 3rd course of the Data Science track on Coursera
##The data The Data for this project came from here
Abstract: Human Activity Recognition database built from the recordings of 30 subjects performing activities of daily living (ADL) while carrying a waist-mounted smartphone with embedded inertial sensors.
##The files
- CodeBook.md : This document describes the variables, the data, and any transformations performed to clean up the dataset
- README.md : This document explain the project and the documents into it
- run_analysis.r : This document is the R script use to obtain the tidy dataset
##The goals You should create one R script called run_analysis.R that 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 step 4, creates a second, independent tidy data set with the average of each variable for each activity and each subject
##The steps ###First Goal : Merges the training and the test sets to create one data set
- Read the test data
- Merge the test data (With cbind)
- Read the train data
- Merge the train data (With cbind)
- Merge the test and train data (With rbind)
###Seccond Goal : Extracts only the measurements on the mean and standard deviation for each measurement
- Read the features text file
- Extract mean and std from the feature file (Using Regular Expressions)
- Extract measurements from the main data set (first goal)
###Third Goal : Uses descriptive activity names to name the activities in the data set
- Read activity labels
- Merging the name to the main data source
- Cleaning the labels
###Fourth Goal : Appropriately labels the data set with descriptive variable names
- Get the columns names
- Clean the names
- Change the columns names
###Fifth Goal : 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
- Aggregate the data per subject and label
- Convert to a .txt file