Types of exercises
Prediction
Prediction of R code behavior.
These exercises expect students to be able predict the result of certain R expressions without using the computer. Such exercises are very effective in finding uncertainties and gaps in knowledge.
Correction
Correction of malfunctioning code.
Such exercises are invaluable for learning syntax and pattern recognition in computer code.
Exploration
Exploration of R code behavior.
Finding combinations is a useful way to get first-hand, personal experience in the language.
Paraphrasing
Paraphrasing on given R expressions.
Computer languages are redundant by nature. These exercises expect students to take existing computer code and recalculate the same result with different tools.