Chapter 3 Programming

We will learn basic programming techniques in R to prepare ourselves to write a program:

  • Conditional statements
  • Iterative Statements

Learning Objective:

  • Learn how to use relational operators

  • Learn how to use logical operators

  • Learn how to use conditional statements (if)

  • Learn how to use basic iterative statements (do while, for)

  • Learn how to use advanced iterative statements (apply, Reduce)