R Programming Assignment Completed

Changed the original R file to solve the programming assignment
detailed in coursera