R fundamentals for funtional programming

We dedicate this part to overview the basics to program in R. The aim of this part is building the basis for Machine learning, namely control flow, loops, functional programming.