.R file completed for the assignment

.R file completed for the assignment