Myself Ph.D. in advanced analytics having 10+ years of experience in developing and delivering and analytical projects using open source R (including in-memory computing), and can deliver your requirement with R, accompanied by a step-by-step word document, what each line or code means. Apart from helping you in this assignment I can take R tutorial which makes you comfortable with R. I will provide you tips and hand reference document for all your future use.