13) Scoping

📖 Scoping Rules

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.

📰 Slides

13-functions-scoping.pdf

🎯 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