12) Scoping
📖 Lecture
This week we review more technical aspects of functions in R. Specifically, we will focus on the scoping mechanisms used by R to find the value of a variable.
🎯 Objectives
- Provide an example of “name masking”
- Provide an example of “functions versus variables”
- Provide an example of “fresh start”
- Provide an example of “dynamic lookup”
📚 Reading
🔬 Lab
Work with some basic examples to understand scoping rules and environments.