Analysis of the UCI HAR dataset using R