R script that analyze data gathered from smartphones accelerometers. Done as part of the Getting and Clening Data Coursera course.
- Load the raw data from the working directory. Raw data is divided into train and test data sets.
- Merge the training and the test sets to create one data set.
- Load variable names from raw data separated file and assign them to the merged data
- Extract only the measurements on the mean and standard deviation for each measurement.
- Get variable names for the mean measurements
- Get variable names for the standard deviation measurements
- Subset data selecting columns that are among the previous variable names
- Use descriptive activity names to name the activities in the data set.
- Load activity names from raw data separated file
- Cast activity variable to factor
- Level activity variable to the loaded activity names
- Label the data set with descriptive variable names.
- Make variables names lower case
- Remove any dot from variable names
- Create an independent tidy data set with the average of each variable for each activity and each subject.
- Write the tidy data set to an output file.
Dataset description is given in CodeBook