R code used in the online course: Learning from data