Please, take a look at Coursera-PML-Week4.md file for the assignment solution.
For the compiled HTML file: https://andygrammer.github.io/Coursera-Practical-Machine-Learning-Week4/Coursera-PML-Week4.html
The data for this project come from this source: http://groupware.les.inf.puc-rio.br/har. If you use the document you create for this class for any purpose please cite them as they have been very generous in allowing their data to be used for this kind of assignment.