In R, if a variable is not found in the local environment of a function, the function will look in the ______ environment.

  • Global
  • Parent
  • Child
  • Calling
In R, if a variable is not found in the local environment of a function, the function will look in the parent environment. This allows functions to access variables defined in higher-level environments, such as variables defined outside the function but within the parent environment.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *