Introduction to loops

You will learn what operators and loops do and how to write a if-then-else construct.

At the end of this unit you should know

  • what arithmetic, relational and logical operators are
  • what for-loops, lapply-loops and while-loops are and how to choose the right one
  • and how to build if-then-else constructs.

Comments?

You can leave comments below if you have questions or remarks about any of the text or code in this unit. Please copy the corresponding line into your comment to make it easier to answer your question.

Updated: