NOTE: Refer basic framework to “R for Data Science” by Hadley Wickham