https://r4stats.com/examples/programming/
Basic R Programming