R code to munge data from the UC Irvine Human Activity Recognition Using Smartphones Data Set