Adrian Tam continues a primer on R:
R is a procedural programming language. Therefore, it has the full set of flow control syntax like many other languages. Indeed, the flow control syntax in R is similar to Java and C. In this post, you will see some examples of using the flow control syntax in R.
Read on for examples of flow control (if/else, for, etc.) and creating functions.