A introductory textbook for data science using R