Lecture 6: Conditionals and loops#
Learning objectives#
Introduce logical expressions.
Use boolean expressions to extract data frame rows that satisfy certain criteria.
Introduce for-loops.
Introduce while-loops.
Introduce if-statements as a way to control program flow.