Mathematics for Data Science and Machine Learning using R